504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, darwin
|
|
, protobuf
|
|
, nix-update-script
|
|
, testers
|
|
, sozu
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sozu";
|
|
version = "0.15.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sozu-proxy";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-tmQgihbE4Ga2NXKwTQTaMP2ZKyL9G1zTojHG2mwFn0o=";
|
|
};
|
|
|
|
cargoHash = "sha256-93I9HcGCnli8gK7BkS4h4pecmN/yRpwbjFzqlMLMbM0=";
|
|
|
|
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 ];
|
|
mainProgram = "sozu";
|
|
# error[E0432]: unresolved import `std::arch::x86_64`
|
|
broken = !stdenv.isx86_64;
|
|
};
|
|
}
|