depot/third_party/nixpkgs/pkgs/servers/sozu/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

50 lines
1.1 KiB
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, darwin
, protobuf
, nix-update-script
, testers
, sozu
}:
rustPlatform.buildRustPackage rec {
pname = "sozu";
version = "0.15.2";
src = fetchFromGitHub {
owner = "sozu-proxy";
repo = pname;
rev = version;
hash = "sha256-6CuBJUMymnqNx/675PeBuZNhYYh9HtU99J1LYO2+Rxc=";
};
cargoHash = "sha256-c/TC8Mn9UFIymkXxD02iB6E3kKyeuKDgvlgapiV0Nco=";
nativeBuildInputs = [ protobuf ];
buildInputs =
lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
doCheck = false;
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = sozu;
command = "sozu --version";
version = "${version}";
};
};
meta = with lib; {
description =
"Open Source HTTP Reverse Proxy built in Rust for Immutable Infrastructures";
homepage = "https://www.sozu.io";
changelog = "https://github.com/sozu-proxy/sozu/releases/tag/${version}";
license = licenses.agpl3;
maintainers = with maintainers; [ Br1ght0ne gaelreyrol ];
platforms = [ "x86_64-linux" ];
};
}