From 31dd67110e771ac993075e9f317ab8a11b79c41a Mon Sep 17 00:00:00 2001 From: Gautier DI FOLCO Date: Mon, 22 Jun 2026 23:11:20 +0200 Subject: [PATCH] snip: 0.15.0 -> 0.20.0 https://github.com/edouard-claude/snip/releases/tag/v0.20.0 Added git to nativeCheckInputs to satisfy TestRunCommandHelpAfterSeparator, which shells out to `git --help`. Assisted-by: Z.Ai/GLM-5.2 --- pkgs/by-name/sn/snip/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sn/snip/package.nix b/pkgs/by-name/sn/snip/package.nix index 563d66d02c57..6091c029014a 100644 --- a/pkgs/by-name/sn/snip/package.nix +++ b/pkgs/by-name/sn/snip/package.nix @@ -2,21 +2,24 @@ lib, fetchFromGitHub, buildGoModule, + gitMinimal, }: buildGoModule (finalAttrs: { pname = "snip"; - version = "0.15.0"; + version = "0.20.0"; src = fetchFromGitHub { owner = "edouard-claude"; repo = "snip"; tag = "v${finalAttrs.version}"; - hash = "sha256-pRYxTHNdR2NGiE+RdThcmz3zVP5rKVRbt+IEILIgavk="; + hash = "sha256-u6Jc9U4tb5Y/evtWR/Nw535xVh09ChcKN0Dm+l3bjvA="; }; vendorHash = "sha256-2MxFZqjNuLzcuu+bsLyOyHIakCxh7j0FUx8LsjZRhrY="; + nativeCheckInputs = [ gitMinimal ]; + ldflags = [ "-s" "-w"