mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-15 15:37:54 -05:00
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:
parent
54a5fd0791
commit
aa1a75cc0e
1 changed files with 0 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue