build-system/haskell: Do not pass "--bindir" during configure.

The "--bindir" option is not as useful as it seems as the configured location
is embedded in the outputs.  Instead of using "--bindir" it seems better to
build a statically linked binary and move the binary to its own output to
avoid references between the "out" and "bin" outputs.

* guix/build/haskell-build-system.scm (configure): Do not pass "--bindir".
This commit is contained in:
Ricardo Wurmus 2020-06-24 23:12:06 +02:00
parent 54a5fd0791
commit aa1a75cc0e
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -78,13 +78,11 @@ (define* (configure #:key outputs inputs tests? (configure-flags '())
(let* ((out (assoc-ref outputs "out"))
(doc (assoc-ref outputs "doc"))
(lib (assoc-ref outputs "lib"))
(bin (assoc-ref outputs "bin"))
(name-version (strip-store-file-name out))
(extra-dirs (filter-map (cut assoc-ref inputs <>) extra-directories))
(ghc-path (getenv "GHC_PACKAGE_PATH"))
(params `(,(string-append "--prefix=" out)
,(string-append "--libdir=" (or lib out) "/lib")
,(string-append "--bindir=" (or bin out) "/bin")
,(string-append "--docdir=" (or doc out)
"/share/doc/" name-version)
"--libsubdir=$compiler/$pkg-$version"