me
/
guix
Archived
1
0
Fork 0

gnu: ghc-7: Unpack tarballs from the store.

* gnu/packages/haskell.scm (ghc-7)[arguments]: Adjust custom 'unpack-bin
and 'unpack-testsuite-and-fix-bins phases to unpack tarballs directly
from the store.
master
Efraim Flashner 2022-08-21 12:49:34 +03:00
parent 7032e0bc8a
commit 0fc0ce2342
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 2 additions and 6 deletions

View File

@ -484,15 +484,11 @@ libraries are included in this package.")
(lambda* (#:key inputs outputs #:allow-other-keys)
(mkdir-p ghc-bootstrap-prefix)
(with-directory-excursion ghc-bootstrap-path
(copy-file (assoc-ref inputs "ghc-binary")
"ghc-bin.tar.xz")
(invoke "tar" "xvf" "ghc-bin.tar.xz"))))
(invoke "tar" "xvf" (assoc-ref inputs "ghc-binary")))))
(add-after 'unpack-bin 'unpack-testsuite-and-fix-bins
(lambda* (#:key inputs outputs #:allow-other-keys)
(with-directory-excursion ".."
(copy-file (assoc-ref inputs "ghc-testsuite")
"ghc-testsuite.tar.xz")
(invoke "tar" "xvf" "ghc-testsuite.tar.xz"))
(invoke "tar" "xvf" (assoc-ref inputs "ghc-testsuite")))
(substitute*
(list "testsuite/timeout/Makefile"
"testsuite/timeout/timeout.py"