nixpkgs/pkgs/servers/sozu/default.nix

52 lines
1.2 KiB
Nix
Raw Normal View History

2023-06-26 20:08:16 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, darwin
, protobuf
, nix-update-script
, testers
, sozu
}:
2020-03-31 08:48:10 +00:00
rustPlatform.buildRustPackage rec {
pname = "sozu";
2023-08-09 09:57:48 +00:00
version = "0.15.3";
2020-03-31 08:48:10 +00:00
src = fetchFromGitHub {
owner = "sozu-proxy";
repo = pname;
rev = version;
2023-08-09 09:57:48 +00:00
hash = "sha256-hZQ5pRzQy+BMGnxCl0Mw3hqCHZJcZ30vhqt6gWyLXWU=";
};
2020-03-31 08:48:10 +00:00
2023-08-09 09:57:48 +00:00
cargoHash = "sha256-KFOsKyZZOWvkkTuLqVeLmHlk6HscEJi0sI2hJS6UnOU=";
2023-06-26 20:08:16 +00:00
nativeBuildInputs = [ protobuf ];
2020-03-31 08:48:10 +00:00
buildInputs =
2021-01-15 07:07:56 +00:00
lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
2023-06-26 20:08:16 +00:00
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";
2023-07-11 17:38:50 +00:00
changelog = "https://github.com/sozu-proxy/sozu/releases/tag/${version}";
license = licenses.agpl3;
2023-06-26 20:08:16 +00:00
maintainers = with maintainers; [ Br1ght0ne gaelreyrol ];
2023-08-09 21:21:37 +00:00
# error[E0432]: unresolved import `std::arch::x86_64`
broken = !stdenv.isx86_64;
};
}