gnu: lisp-repl-core-dumper: Patch path to `cat'.

* gnu/packages/lisp.scm (lisp-repl-core-dumper)[arguments]: Substitute calls
to `cat' with full store path.
This commit is contained in:
Pierre Neidhardt 2021-01-20 20:37:57 +01:00
parent 2ec30608b2
commit 683154166d
No known key found for this signature in database
GPG key ID: 9BDCF497A4BBCC7F

View file

@ -1103,12 +1103,14 @@ (define-public lisp-repl-core-dumper
(add-before 'install 'fix-utils-path
(lambda* (#:key inputs #:allow-other-keys)
(let* ((coreutils (string-append (assoc-ref inputs "coreutils") "/bin/"))
(cat (string-append coreutils "cat"))
(paste (string-append coreutils "paste"))
(sort (string-append coreutils "sort"))
(basename (string-append coreutils "basename"))
(sed (string-append (assoc-ref inputs "sed") "/bin/sed")))
(substitute* "lisp-repl-core-dumper"
(("\\$\\(basename") (string-append "$(" basename))
(("\\<cat\\>") cat)
(("\\<paste\\>") paste)
(("\\<sed\\>") sed)
(("\\<sort\\>") sort))))))))