diff options
Diffstat (limited to 'pkgs/data/misc')
-rw-r--r-- | pkgs/data/misc/sing-geoip/default.nix | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/pkgs/data/misc/sing-geoip/default.nix b/pkgs/data/misc/sing-geoip/default.nix index 91c485ce115..b27a61ef020 100644 --- a/pkgs/data/misc/sing-geoip/default.nix +++ b/pkgs/data/misc/sing-geoip/default.nix @@ -8,21 +8,16 @@ let generator = buildGoModule rec { pname = "sing-geoip"; - version = "unstable-2022-07-05"; + version = "20230512"; src = fetchFromGitHub { owner = "SagerNet"; repo = pname; - rev = "2ced72c94da4c9259c40353c375319d9d28a78f3"; - hash = "sha256-z8aP+OfTuzQNwOT3EEnI9uze/vbHTJLEiCPqIrnNUHw="; + rev = "refs/tags/${version}"; + hash = "sha256-Zm+5N/37hoHpH/TLNJrHeaBXI8G1jEpM1jz6Um8edNE="; }; - vendorHash = "sha256-lr0XMLFxJmLqIqCuGgmsFh324jmZVj71blmStMn41Rs="; - - postPatch = '' - # The codes args should start from the third args - substituteInPlace main.go --replace "os.Args[2:]" "os.Args[3:]" - ''; + vendorHash = "sha256-ejXAdsJwXhqet+Ca+pDLWwu0gex79VcIxW6rmhRnbTQ="; meta = with lib; { description = "GeoIP data for sing-box"; |