summary refs log tree commit diff
diff options
context:
space:
mode:
authorhappysalada <raphael@megzari.com>2020-11-01 16:34:16 +0900
committerhappysalada <raphael@megzari.com>2020-11-01 16:34:16 +0900
commitde694b3a14dc9787c87cae53933fbf7ccb6eb463 (patch)
tree189f8a81b648864bb3ffa0245140112d47565dd3
parentcfed29bfcb28259376713005d176a6f82951014a (diff)
downloadnixpkgs-de694b3a14dc9787c87cae53933fbf7ccb6eb463.tar
nixpkgs-de694b3a14dc9787c87cae53933fbf7ccb6eb463.tar.gz
nixpkgs-de694b3a14dc9787c87cae53933fbf7ccb6eb463.tar.bz2
nixpkgs-de694b3a14dc9787c87cae53933fbf7ccb6eb463.tar.lz
nixpkgs-de694b3a14dc9787c87cae53933fbf7ccb6eb463.tar.xz
nixpkgs-de694b3a14dc9787c87cae53933fbf7ccb6eb463.tar.zst
nixpkgs-de694b3a14dc9787c87cae53933fbf7ccb6eb463.zip
sozu: 0.11.46 -> 0.11.50; fix Darwin build
-rw-r--r--pkgs/servers/sozu/default.nix36
1 files changed, 20 insertions, 16 deletions
diff --git a/pkgs/servers/sozu/default.nix b/pkgs/servers/sozu/default.nix
index 1e808358705..16561da7d29 100644
--- a/pkgs/servers/sozu/default.nix
+++ b/pkgs/servers/sozu/default.nix
@@ -1,22 +1,26 @@
-{ stdenv, rustPlatform, fetchFromGitHub }:
+{ stdenv, rustPlatform, fetchFromGitHub, darwin }:
 
 rustPlatform.buildRustPackage rec {
-    pname = "sozu";
-    version = "0.11.46";
+  pname = "sozu";
+  version = "0.11.50";
 
-    src = fetchFromGitHub {
-        owner = "sozu-proxy";
-        repo = pname;
-        rev = version;
-        sha256 = "0anng5qvdx9plxs9qqr5wmjjz0gx5113jq28xwbxaaklvd4ni7cm";
-    };
+  src = fetchFromGitHub {
+    owner = "sozu-proxy";
+    repo = pname;
+    rev = version;
+    sha256 = "1srg2b8vwc4vp07kg4fizqj1rbm9hvf6hj1mjdh6yvb9cpbw3jz7";
+  };
 
-    cargoSha256 = "19c2s9h4jk9pff72wdqw384mvrf40d8x4sx7qysnpb4hayq2ijh3";
+  cargoSha256 = "5WOigCiQZQ5DaTd15vV8pUh8Xl3UIe9yLG1ptUtY+iA=";
 
-    meta = with stdenv.lib; {
-        description = "Open Source HTTP Reverse Proxy built in Rust for Immutable Infrastructures";
-        homepage = "https://sozu.io";
-        license = licenses.agpl3;
-        maintainers = with maintainers; [ filalex77 ];
-    };
+  buildInputs =
+    stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
+
+  meta = with stdenv.lib; {
+    description =
+      "Open Source HTTP Reverse Proxy built in Rust for Immutable Infrastructures";
+    homepage = "https://www.sozu.io";
+    license = licenses.agpl3;
+    maintainers = with maintainers; [ filalex77 ];
+  };
 }