Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / sozu / default.nix
blob53907baed59d92f72f36bbe384d18c3c0d78a855
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , darwin
6 , protobuf
7 , nix-update-script
8 , testers
9 , sozu
12 rustPlatform.buildRustPackage rec {
13   pname = "sozu";
14   version = "0.15.19";
16   src = fetchFromGitHub {
17     owner = "sozu-proxy";
18     repo = pname;
19     rev = version;
20     hash = "sha256-9TSu27s/rnO48zEhBzaHaU3pHyIJ0LVZC8LBRhn0PNM=";
21   };
23   cargoHash = "sha256-h9igqV9YqMqRhqwsKYIji8WAVmcPQfErcPPm0PcDwss=";
25   nativeBuildInputs = [ protobuf ];
27   buildInputs =
28     lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
30   doCheck = false;
32   passthru = {
33     updateScript = nix-update-script { };
34     tests.version = testers.testVersion {
35       package = sozu;
36       command = "sozu --version";
37       version = "${version}";
38     };
39   };
41   meta = with lib; {
42     description =
43       "Open Source HTTP Reverse Proxy built in Rust for Immutable Infrastructures";
44     homepage = "https://www.sozu.io";
45     changelog = "https://github.com/sozu-proxy/sozu/releases/tag/${version}";
46     license = licenses.agpl3Only;
47     maintainers = with maintainers; [ Br1ght0ne gaelreyrol ];
48     mainProgram = "sozu";
49     # error[E0432]: unresolved import `std::arch::x86_64`
50     broken = !stdenv.isx86_64;
51   };