haskell-build-system: register: Respect lib output.

* guix/build/haskell-build-system.scm (register): Use lib output if it exists.
This commit is contained in:
Ricardo Wurmus 2020-06-16 22:32:09 +02:00
parent 718dc7d4a5
commit 75bda3c648
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

View File

@ -246,7 +246,7 @@ given Haskell package."
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(haskell (assoc-ref inputs "haskell")) (haskell (assoc-ref inputs "haskell"))
(name-verion (strip-store-file-name haskell)) (name-verion (strip-store-file-name haskell))
(lib (string-append out "/lib")) (lib (string-append (or (assoc-ref outputs "lib") out) "/lib"))
(config-dir (string-append lib (config-dir (string-append lib
"/" name-verion "/" name-verion
"/" name ".conf.d")) "/" name ".conf.d"))