gnu: oil: Use G-expressions.

* gnu/packages/shells.scm (oil)[arguments]:
Rewrite as G-expressions.
This commit is contained in:
Tobias Geerinckx-Rice 2022-01-16 01:00:00 +01:00
parent a2350a16dd
commit 487613deea
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -838,17 +838,16 @@ (define-public oil
(base32 "01lmj4diqpla1gwwb1gh1shf4y74qhanpkzcsnb28458rxm1sq32"))))
(build-system gnu-build-system)
(arguments
`(#:strip-binaries? #f ; strip breaks the binary
(list #:strip-binaries? #f ; strip breaks the binary
#:phases
(modify-phases %standard-phases
#~(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(setenv "CC" ,(cc-for-target))
(lambda _
(setenv "CC" #$(cc-for-target))
(substitute* "configure"
((" cc ") " $CC "))
(invoke "./configure" (string-append "--prefix=" out)
"--with-readline"))))
(invoke "./configure" (string-append "--prefix=" #$output)
"--with-readline")))
(replace 'check
;; The tests are not distributed in the tarballs but upstream
;; recommends running this smoke test.