From de694b3a14dc9787c87cae53933fbf7ccb6eb463 Mon Sep 17 00:00:00 2001 From: happysalada Date: Sun, 1 Nov 2020 16:34:16 +0900 Subject: sozu: 0.11.46 -> 0.11.50; fix Darwin build --- pkgs/servers/sozu/default.nix | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'pkgs/servers/sozu') diff --git a/pkgs/servers/sozu/default.nix b/pkgs/servers/sozu/default.nix index 1e8083587055c..16561da7d2971 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 ]; + }; } -- cgit 1.4.1