2023-06-26 22:08:16 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, darwin
|
|
|
|
, protobuf
|
|
|
|
, nix-update-script
|
|
|
|
, testers
|
|
|
|
, sozu
|
|
|
|
}:
|
2020-03-31 10:48:10 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-11-01 08:34:16 +01:00
|
|
|
pname = "sozu";
|
2024-01-25 23:26:36 +01:00
|
|
|
version = "0.15.19";
|
2020-03-31 10:48:10 +02:00
|
|
|
|
2020-11-01 08:34:16 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sozu-proxy";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-01-25 23:26:36 +01:00
|
|
|
hash = "sha256-9TSu27s/rnO48zEhBzaHaU3pHyIJ0LVZC8LBRhn0PNM=";
|
2020-11-01 08:34:16 +01:00
|
|
|
};
|
2020-03-31 10:48:10 +02:00
|
|
|
|
2024-01-25 23:26:36 +01:00
|
|
|
cargoHash = "sha256-h9igqV9YqMqRhqwsKYIji8WAVmcPQfErcPPm0PcDwss=";
|
2023-06-26 22:08:16 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ protobuf ];
|
2020-03-31 10:48:10 +02:00
|
|
|
|
2020-11-01 08:34:16 +01:00
|
|
|
buildInputs =
|
2021-01-15 08:07:56 +01:00
|
|
|
lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
2020-11-01 08:34:16 +01:00
|
|
|
|
2023-06-26 22:08:16 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = sozu;
|
|
|
|
command = "sozu --version";
|
|
|
|
version = "${version}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-11-01 08:34:16 +01:00
|
|
|
description =
|
|
|
|
"Open Source HTTP Reverse Proxy built in Rust for Immutable Infrastructures";
|
|
|
|
homepage = "https://www.sozu.io";
|
2023-07-11 19:38:50 +02:00
|
|
|
changelog = "https://github.com/sozu-proxy/sozu/releases/tag/${version}";
|
2024-03-19 13:26:06 +01:00
|
|
|
license = licenses.agpl3Only;
|
2023-06-26 22:08:16 +02:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne gaelreyrol ];
|
2023-09-15 14:15:51 +02:00
|
|
|
mainProgram = "sozu";
|
2023-08-09 23:21:37 +02:00
|
|
|
# error[E0432]: unresolved import `std::arch::x86_64`
|
|
|
|
broken = !stdenv.isx86_64;
|
2020-11-01 08:34:16 +01:00
|
|
|
};
|
2020-07-31 06:08:19 +02:00
|
|
|
}
|