sing-box: 1.2.7 -> 1.3.0

This commit is contained in:
Nick Cao 2023-06-27 12:18:33 +08:00
parent 6b28b64c2c
commit 95a49014e7
No known key found for this signature in database

View File

@ -4,21 +4,22 @@
, fetchFromGitHub
, installShellFiles
, buildPackages
, coreutils
, nix-update-script
}:
buildGoModule rec {
pname = "sing-box";
version = "1.2.7";
version = "1.3.0";
src = fetchFromGitHub {
owner = "SagerNet";
repo = pname;
rev = "v${version}";
hash = "sha256-+pRG5nq0Be58at61qqu5QciHC2DMvw+wj7u8tZx8+eY=";
hash = "sha256-+zEjuoGFAZhajUCFPZXNr1SoAprjOsHf12nVCbDKOeY=";
};
vendorHash = "sha256-gHPMJ4/W2ZisG/jAtHSLH/NlHgBitg7Bwe95wGJAsOY=";
vendorHash = "sha256-KJEjqcwtsNEByTQjp+TU9Yct/CJD8F9fnGuq9eeGtpQ=";
tags = [
"with_quic"
@ -50,6 +51,11 @@ buildGoModule rec {
--bash <(${emulator} $out/bin/sing-box completion bash) \
--fish <(${emulator} $out/bin/sing-box completion fish) \
--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 { };