From 43cbfa684c656f17e30e447b4a6cba083f76ed2c Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Tue, 11 Aug 2026 16:27:36 +0800 Subject: [PATCH] sing-box: 1.13.16 -> 1.13.18 --- pkgs/by-name/si/sing-box/package.nix | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/si/sing-box/package.nix b/pkgs/by-name/si/sing-box/package.nix index 5cb755599cc6..435785a25c15 100644 --- a/pkgs/by-name/si/sing-box/package.nix +++ b/pkgs/by-name/si/sing-box/package.nix @@ -1,25 +1,26 @@ { lib, buildGoModule, + coreutils, fetchFromGitHub, installShellFiles, - coreutils, - nix-update-script, nixosTests, }: - buildGoModule (finalAttrs: { pname = "sing-box"; - version = "1.13.16"; + version = "1.13.18"; + __structuredAttrs = true; + + # nixpkgs-update: no auto update src = fetchFromGitHub { owner = "SagerNet"; repo = "sing-box"; tag = "v${finalAttrs.version}"; - hash = "sha256-GAIU0SRvxU92E40zCkMsiSPuIEIUZM5vORN2u2XIhqs="; + hash = "sha256-OsztNxrONCkyE0kxJFB0Ni61FW9cRJLAcpNia5WWhNo="; }; - vendorHash = "sha256-ZUEpYfgb/iflImVCdLIgUzfp4QY9ho1gYkIAJV1tXrg="; + vendorHash = "sha256-70cAuzVZY1F++xjoS+ZbWno7Y4uzi7FHIc2RFXFhMw0="; tags = [ "with_gvisor" @@ -40,9 +41,13 @@ buildGoModule (finalAttrs: { "cmd/sing-box" ]; - env.CGO_ENABLED = 0; + env = { + CGO_ENABLED = 0; + }; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + ]; ldflags = [ "-X=github.com/sagernet/sing-box/constant.Version=${finalAttrs.version}" @@ -50,6 +55,9 @@ buildGoModule (finalAttrs: { "-checklinkname=0" ]; + # no tests + doCheck = false; + postInstall = '' installShellCompletion release/completions/sing-box.{bash,fish,zsh} @@ -63,7 +71,6 @@ buildGoModule (finalAttrs: { ''; passthru = { - updateScript = nix-update-script { }; tests = { inherit (nixosTests) sing-box; }; }; @@ -74,6 +81,7 @@ buildGoModule (finalAttrs: { maintainers = with lib.maintainers; [ nickcao prince213 + moraxyc ]; mainProgram = "sing-box"; };