gnu: git-sizer: Pin git version.

* gnu/packages/version-control.scm (git-sizer)
[arguments]<#:phases>: Hard-code git path in 'fix-paths.
[native-inputs]: Remove git.
[inputs]: Add git-minimal/pinned.

Change-Id: If6178a0e1c453ea47a1f70cd507639b5be2142b0
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Greg Hogan 2024-12-09 15:30:52 +00:00 committed by Ludovic Courtès
parent b90b8771fd
commit 6642b8021f
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -4464,7 +4464,12 @@ (define-public git-sizer
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-paths
(lambda* (#:key outputs #:allow-other-keys)
(lambda* (#:key inputs outputs #:allow-other-keys)
(substitute* '("src/github.com/github/git-sizer/git/git.go")
(("gitBin, err := findGitBin\\(\\)")
(string-append "gitBin := \""
(search-input-file inputs "bin/git")
"\"\n\tvar err error")))
(substitute* '("src/github.com/github/git-sizer/git_sizer_test.go")
(("bin/git-sizer")
(string-append (assoc-ref outputs "out")
@ -4478,7 +4483,7 @@ (define-public git-sizer
;; Git repository.
'("TestBomb" "TestFromSubdir" "TestRefgroups"
"TestRefSelections" "TestTaggedTags"))))))))
(native-inputs (list git))
(inputs (list git-minimal/pinned))
(propagated-inputs
(list go-github-com-cli-safeexec
go-github-com-davecgh-go-spew