mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
build-system: haskell: Drop default "static" output.
* guix/build-system/haskell.scm (lower): Pass outputs to lowered bag. * guix/build/haskell-build-system.scm (install): Remove static library moving code. * gnu/packages/haskell-check.scm (ghc-hunit): Remove "static" output. * gnu/packages/haskell-crypto.scm (ghc-crypto-api-tests): Likewise. * gnu/packages/haskell-xyz.scm (ghc-case-insensitive): Likewise. (ghc-cmdargs): Likewise. (ghc-conduit): Likewise. (ghc-fgl): Likewise. (ghc-haskell-src-exts): Likewise. (ghc-lib-parser): Likewise. (ghc-mono-traversable): Likewise. (ghc-parallel): Likewise. (ghc-paths): Likewise. (ghc-profunctors): Likewise. (ghc-tf-random): Likewise. (ghc-vector): Likewise.
This commit is contained in:
parent
ebea18357b
commit
4bb40b098d
5 changed files with 15 additions and 29 deletions
|
@ -129,17 +129,7 @@ and parameters ~s~%"
|
|||
|
||||
(define* (install #:key outputs #:allow-other-keys)
|
||||
"Install a given Haskell package."
|
||||
(run-setuphs "copy" '())
|
||||
(when (assoc-ref outputs "static")
|
||||
(let ((static (assoc-ref outputs "static"))
|
||||
(lib (or (assoc-ref outputs "lib")
|
||||
(assoc-ref outputs "out"))))
|
||||
(for-each (lambda (static-lib)
|
||||
(let* ((subdir (string-drop static-lib (string-length lib)))
|
||||
(new (string-append static subdir)))
|
||||
(mkdir-p (dirname new))
|
||||
(rename-file static-lib new)))
|
||||
(find-files lib "\\.a$")))))
|
||||
(run-setuphs "copy" '()))
|
||||
|
||||
(define* (setup-compiler #:key system inputs outputs #:allow-other-keys)
|
||||
"Setup the compiler environment."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue