mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
sing-box: 1.2.7 -> 1.3.0
This commit is contained in:
parent
6b28b64c2c
commit
95a49014e7
@ -4,21 +4,22 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, buildPackages
|
, buildPackages
|
||||||
|
, coreutils
|
||||||
, nix-update-script
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "sing-box";
|
pname = "sing-box";
|
||||||
version = "1.2.7";
|
version = "1.3.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "SagerNet";
|
owner = "SagerNet";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-+pRG5nq0Be58at61qqu5QciHC2DMvw+wj7u8tZx8+eY=";
|
hash = "sha256-+zEjuoGFAZhajUCFPZXNr1SoAprjOsHf12nVCbDKOeY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-gHPMJ4/W2ZisG/jAtHSLH/NlHgBitg7Bwe95wGJAsOY=";
|
vendorHash = "sha256-KJEjqcwtsNEByTQjp+TU9Yct/CJD8F9fnGuq9eeGtpQ=";
|
||||||
|
|
||||||
tags = [
|
tags = [
|
||||||
"with_quic"
|
"with_quic"
|
||||||
@ -50,6 +51,11 @@ buildGoModule rec {
|
|||||||
--bash <(${emulator} $out/bin/sing-box completion bash) \
|
--bash <(${emulator} $out/bin/sing-box completion bash) \
|
||||||
--fish <(${emulator} $out/bin/sing-box completion fish) \
|
--fish <(${emulator} $out/bin/sing-box completion fish) \
|
||||||
--zsh <(${emulator} $out/bin/sing-box completion zsh )
|
--zsh <(${emulator} $out/bin/sing-box completion zsh )
|
||||||
|
|
||||||
|
substituteInPlace release/config/sing-box{,@}.service \
|
||||||
|
--replace "/usr/bin/sing-box" "$out/bin/sing-box" \
|
||||||
|
--replace "/bin/kill" "${coreutils}/bin/kill"
|
||||||
|
install -Dm444 -t "$out/lib/systemd/system/" release/config/sing-box{,@}.service
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.updateScript = nix-update-script { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
Loading…
Reference in New Issue
Block a user