gnu: interrobang: Use GIT-... helpers.

* gnu/packages/admin.scm (interrobang)[version]: Use GIT-VERSION.
[source]: Use GIT-FILE-NAME.
This commit is contained in:
Tobias Geerinckx-Rice 2018-12-23 10:38:56 +01:00
parent 7d6e8fda61
commit 807a30999d
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -2125,22 +2125,22 @@ (define-public interrobang
(commit "896543735e1c99144765fdbd7b6e6b5afbd8b881")) (commit "896543735e1c99144765fdbd7b6e6b5afbd8b881"))
(package (package
(name "interrobang") (name "interrobang")
(version (string-append "0.0.0-" revision "." (string-take commit 7))) (version (git-version "0.0.0" revision commit))
(source (origin (source
(method git-fetch) (origin
(uri (git-reference (method git-fetch)
(url "https://github.com/TrilbyWhite/interrobang") (uri (git-reference
(commit commit))) (url "https://github.com/TrilbyWhite/interrobang.git")
(file-name (string-append name "-" version)) (commit commit)))
(sha256 (file-name (git-file-name name version))
(base32 (sha256
"1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf")))) (base32 "1n13m70p1hfba5dy3i8hfclbr6k9q3d9dai3dg4jvhdhmxcpjzdf"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; no tests `(#:tests? #f ; no tests
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure)) ; no configure script (delete 'configure)) ; no configure script
#:make-flags (list (string-append "PREFIX=" #:make-flags (list (string-append "PREFIX="
(assoc-ref %outputs "out"))))) (assoc-ref %outputs "out")))))
(inputs (inputs