Files
nixpkgs/pkgs/by-name/so/sozu/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.1 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
protobuf,
nix-update-script,
testers,
sozu,
}:
rustPlatform.buildRustPackage rec {
pname = "sozu";
version = "1.0.6";
src = fetchFromGitHub {
owner = "sozu-proxy";
repo = "sozu";
rev = version;
hash = "sha256-Cda53lhKPxm2w8guoKuQjdjhZNWJinzR1PHc5S57y2w=";
};
cargoHash = "sha256-AIj59MqK+TqyTTDjGzN1Oec3svPaXRBkHJTBtxTwZNg=";
nativeBuildInputs = [ protobuf ];
doCheck = false;
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = sozu;
command = "sozu --version";
version = "${version}";
};
};
meta = {
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 = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [
Br1ght0ne
gaelreyrol
];
mainProgram = "sozu";
# error[E0432]: unresolved import `std::arch::x86_64`
broken = !stdenv.hostPlatform.isx86_64;
};
}