gnu: eless: Don't use unstable tarball.

* gnu/packages/emacs-xyz.scm (eless)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
[native-inputs]: Remove tar and gzip.
[arguments]: Adjust builder.
This commit is contained in:
Tobias Geerinckx-Rice 2019-04-08 23:32:03 +02:00
parent 49194b85ce
commit 9ee1b41908
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 11 additions and 17 deletions

View File

@ -8259,31 +8259,25 @@ for external literate programming tools for exporting, weaving and tangling.")
(package (package
(name "eless") (name "eless")
(version "0.3") (version "0.3")
(source (origin (source
(method url-fetch) (origin
(uri (string-append (method git-fetch)
"https://github.com/kaushalmodi/eless/archive/" (uri (git-reference
"v" version ".tar.gz")) (url "https://github.com/kaushalmodi/eless.git")
(file-name (string-append name "-" version ".tar.gz")) (commit (string-append "v" version))))
(sha256 (file-name (git-file-name name version))
(base32 (sha256
"0gjnnhgw5xs1w3qfnkvwa2nv44gnxr8pkhx3c7qig45p8nh1461h")))) (base32 "0jr7vhh4vw69llhi0fh9ljscljkszkj0acdxl04da5hvqv6pnqbb"))))
(build-system trivial-build-system) (build-system trivial-build-system)
(inputs (inputs
`(("bash" ,bash))) `(("bash" ,bash)))
(native-inputs
`(("tar" ,tar)
("gzip" ,gzip)))
(arguments (arguments
`(#:modules ((guix build utils)) `(#:modules ((guix build utils))
#:builder #:builder
(begin (begin
(use-modules (guix build utils)) (use-modules (guix build utils))
(setenv "PATH" (string-append (copy-recursively (assoc-ref %build-inputs "source") "source")
(assoc-ref %build-inputs "tar") "/bin" ":" (chdir "source")
(assoc-ref %build-inputs "gzip") "/bin"))
(invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
(chdir (string-append "eless" "-" ,version))
(substitute* "eless" (("/usr/bin/env bash") (substitute* "eless" (("/usr/bin/env bash")
(string-append (assoc-ref %build-inputs "bash") (string-append (assoc-ref %build-inputs "bash")
"/bin/bash"))) "/bin/bash")))