Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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;
};
}