gnu: stgit-2: Allow building with newer dependencies.

* gnu/packages/version-control.scm (stgit-2)[source]: Add snippet to
allow building with newer dependencies.

Change-Id: Ia1309c0656a3f0df2529f52e2ddd4bfbd59e163d
This commit is contained in:
Efraim Flashner 2024-03-28 15:04:24 +02:00
parent cf218b1575
commit 4be051fffb
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1635,7 +1635,12 @@ (define-public stgit-2
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0cgv7chxqkjaqmzi4691in26j2fm8r0vanw8xzb9cqnz6350wvvj"))))
(base32 "0cgv7chxqkjaqmzi4691in26j2fm8r0vanw8xzb9cqnz6350wvvj"))
(modules '((guix build utils)))
(snippet
'(begin (substitute* (find-files "." "^Cargo\\.toml$")
(("\"~([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
(string-append "\"^" version)))))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-anstyle" ,rust-anstyle-1)