gnu: src: Add bash-minimal to inputs, use gexps.

* gnu/packages/version-control.scm (src)
[arguments]: Use gexps.
[inputs]: Add bash-minimal.

Change-Id: I122b0c496792a5dea731c2e70d32cba7286df0b1
This commit is contained in:
Maxim Cournoyer 2023-10-19 23:56:46 -04:00 committed by Ludovic Courtès
parent 0f0ec73ac8
commit 68d26688ea
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -3363,19 +3363,18 @@ (define-public src
"0r9i399kkagpwj08nwf1f7c6lr50xjzzgmzwyjjy6ppgcc53a809"))))
(build-system gnu-build-system)
(arguments
'(#:make-flags
(list (string-append "prefix=" (assoc-ref %outputs "out")))
(list
#:make-flags
#~(list (string-append "prefix=" #$output))
#:phases
(modify-phases %standard-phases
#~(modify-phases %standard-phases
(delete 'configure) ; no 'configure' script
(add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(prog (string-append out "/bin/src"))
(rcs (assoc-ref inputs "rcs")))
(lambda* (#:key inputs #:allow-other-keys)
(let* ((prog (string-append #$output "/bin/src"))
(rcs (search-input-file inputs "bin/rcs")))
(wrap-program prog
`("PATH" ":" prefix (,(string-append rcs "/bin"))))
#t)))
`("PATH" ":" prefix (,(dirname rcs)))))))
(replace 'check
(lambda _
(setenv "HOME" (getenv "TMPDIR"))
@ -3386,9 +3385,10 @@ (define-public src
;; For testing.
(list git perl))
(inputs
`(("cssc" ,cssc)
("python" ,python-wrapper)
("rcs" ,rcs)))
(list bash-minimal
cssc
python-wrapper
rcs))
(synopsis "Simple revision control")
(home-page "http://www.catb.org/~esr/src/")
(description