2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, darwin
|
|
|
|
, protobuf
|
|
|
|
, nix-update-script
|
|
|
|
, testers
|
|
|
|
, sozu
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-11-03 02:18:15 +00:00
|
|
|
pname = "sozu";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.15.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sozu-proxy";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-zxGP2SWrq8beb+mJpgB39T7B1HpE76YP6se01vMewuw=";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-KqCDOWCMRYpBMsESTdhMEgTu6qAxcg4RHe252JBggqs=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ protobuf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
buildInputs =
|
2021-01-15 22:18:51 +00:00
|
|
|
lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = sozu;
|
|
|
|
command = "sozu --version";
|
|
|
|
version = "${version}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-03 02:18:15 +00:00
|
|
|
description =
|
|
|
|
"Open Source HTTP Reverse Proxy built in Rust for Immutable Infrastructures";
|
|
|
|
homepage = "https://www.sozu.io";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/sozu-proxy/sozu/releases/tag/${version}";
|
2020-11-03 02:18:15 +00:00
|
|
|
license = licenses.agpl3;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne gaelreyrol ];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "sozu";
|
2023-08-10 07:59:29 +00:00
|
|
|
# error[E0432]: unresolved import `std::arch::x86_64`
|
|
|
|
broken = !stdenv.isx86_64;
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|