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:
Lars-Dominik Braun 2023-01-29 18:43:05 +01:00
parent ebea18357b
commit 4bb40b098d
No known key found for this signature in database
GPG key ID: F663943E08D8092A
5 changed files with 15 additions and 29 deletions

View file

@ -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."