gnu: inxi: Use GIT-FETCH.
* gnu/packages/admin.scm (inxi)[source]: Use GIT-FETCH. [native-inputs]: Remove tar. [arguments]: Adjust accordingly.
This commit is contained in:
parent
55f5556e24
commit
b740a30527
1 changed files with 8 additions and 9 deletions
|
@ -2655,10 +2655,10 @@ (define-public inxi-minimal
|
||||||
(version "3.0.04-1")
|
(version "3.0.04-1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://github.com/smxi/inxi"
|
(uri (git-reference
|
||||||
"/archive/" version "/inxi.tar.gz"))
|
(url "https://github.com/smxi/inxi")
|
||||||
(file-name (string-append real-name "-" version ".tar.gz"))
|
(commit version)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"14zxdsjgh9dbijmpp0hhvg2yiqqfwnqgcc6x8dpl1v15z1h1r7pc"))))
|
"14zxdsjgh9dbijmpp0hhvg2yiqqfwnqgcc6x8dpl1v15z1h1r7pc"))))
|
||||||
|
@ -2667,8 +2667,7 @@ (define-public inxi-minimal
|
||||||
`(("bash" ,bash)
|
`(("bash" ,bash)
|
||||||
("perl" ,perl)))
|
("perl" ,perl)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("gzip" ,gzip)
|
`(("gzip" ,gzip)))
|
||||||
("tar" ,tar)))
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules
|
`(#:modules
|
||||||
((guix build utils)
|
((guix build utils)
|
||||||
|
@ -2682,9 +2681,9 @@ (define-public inxi-minimal
|
||||||
(setenv "PATH" (string-append
|
(setenv "PATH" (string-append
|
||||||
(assoc-ref %build-inputs "bash") "/bin" ":"
|
(assoc-ref %build-inputs "bash") "/bin" ":"
|
||||||
(assoc-ref %build-inputs "gzip") "/bin" ":"
|
(assoc-ref %build-inputs "gzip") "/bin" ":"
|
||||||
(assoc-ref %build-inputs "perl") "/bin" ":"
|
(assoc-ref %build-inputs "perl") "/bin" ":"))
|
||||||
(assoc-ref %build-inputs "tar") "/bin" ":"))
|
(copy-recursively (assoc-ref %build-inputs "source")
|
||||||
(invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
|
,(string-append real-name "-" version))
|
||||||
(with-directory-excursion ,(string-append real-name "-" version)
|
(with-directory-excursion ,(string-append real-name "-" version)
|
||||||
(with-fluids ((%default-port-encoding #f))
|
(with-fluids ((%default-port-encoding #f))
|
||||||
(substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
|
(substitute* "inxi" (("/usr/bin/env perl") (which "perl"))))
|
||||||
|
|
Loading…
Reference in a new issue