Merge pull request #239995 from gaelreyrol/sozu-update-0.15.0
sozū: 0.13.6 -> 0.15.0
This commit is contained in:
commit
a40b1a0c82
2 changed files with 2521 additions and 5 deletions
2486
pkgs/servers/sozu/Cargo.lock
generated
Normal file
2486
pkgs/servers/sozu/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,26 +1,56 @@
|
||||||
{ lib, stdenv, rustPlatform, fetchFromGitHub, darwin }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, darwin
|
||||||
|
, protobuf
|
||||||
|
, nix-update-script
|
||||||
|
, testers
|
||||||
|
, sozu
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "sozu";
|
pname = "sozu";
|
||||||
version = "0.13.6";
|
version = "0.15.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sozu-proxy";
|
owner = "sozu-proxy";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-C2wIkneOh6t8gjoHRYMRorAKEVvM3R+NRZbG9hhCE5A=";
|
hash = "sha256-lbBwmi8MrcWr6AXzl9upnXw8ZEWyDGEWr+txE4dujWs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-Ej2/X1aQ8uRdZKpVRT4+AzhDWMv/sT8GrCitUmkrHmI=";
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ protobuf ];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# update Cargo.lock to fix build
|
||||||
|
ln -sf ${./Cargo.lock} Cargo.lock
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = nix-update-script { };
|
||||||
|
tests.version = testers.testVersion {
|
||||||
|
package = sozu;
|
||||||
|
command = "sozu --version";
|
||||||
|
version = "${version}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description =
|
description =
|
||||||
"Open Source HTTP Reverse Proxy built in Rust for Immutable Infrastructures";
|
"Open Source HTTP Reverse Proxy built in Rust for Immutable Infrastructures";
|
||||||
homepage = "https://www.sozu.io";
|
homepage = "https://www.sozu.io";
|
||||||
license = licenses.agpl3;
|
license = licenses.agpl3;
|
||||||
maintainers = with maintainers; [ Br1ght0ne ];
|
maintainers = with maintainers; [ Br1ght0ne gaelreyrol ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue