Merge pull request #221613 from NickCao/singbox

sing-box: 1.1.6 -> 1.1.7
This commit is contained in:
Nick Cao
2023-03-18 10:05:21 +08:00
committed by GitHub
+7 -3
View File
@@ -8,16 +8,16 @@
buildGoModule rec {
pname = "sing-box";
version = "1.1.6";
version = "1.1.7";
src = fetchFromGitHub {
owner = "SagerNet";
repo = pname;
rev = "v${version}";
hash = "sha256-CwXhCJo6Nq0dZaTcUetsSpvNKme1PN6pzMRX1QeY3gg=";
hash = "sha256-jovUK535vZeCgnnW+9/gjXwCkNLMXdiCJwWqFKCubcU=";
};
vendorHash = "sha256-cLaMtnTSmCZoPwfeQpWXCiFtmDm3vA6AD12H5h8Obhk=";
vendorHash = "sha256-WYMCsFX5/4H+Bc0KcxcPMjfz2wEXz3V4D0sww15AgvE=";
tags = [
"with_quic"
@@ -38,6 +38,10 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
ldflags = [
"-X=github.com/sagernet/sing-box/constant.Version=${version}"
];
postInstall = let emulator = stdenv.hostPlatform.emulator buildPackages; in ''
installShellCompletion --cmd sing-box \
--bash <(${emulator} $out/bin/sing-box completion bash) \