[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
265/272: gnu: agda: Fix build.
From: |
Ricardo Wurmus |
Subject: |
265/272: gnu: agda: Fix build. |
Date: |
Mon, 1 Oct 2018 06:13:59 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 787231e9570779892b2eb2e79563be4cfacc9b9d
Author: Ricardo Wurmus <address@hidden>
Date: Sun Sep 30 12:23:59 2018 +0200
gnu: agda: Fix build.
* gnu/packages/agda.scm (agda)[inputs]: Remove ghc-monadplus; add
ghc-filemanip.
[arguments]: Replace configure phase.
---
gnu/packages/agda.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 44 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/agda.scm b/gnu/packages/agda.scm
index 418025b..6bb38aa 100644
--- a/gnu/packages/agda.scm
+++ b/gnu/packages/agda.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Alex ter Weele <address@hidden>
+;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -51,13 +52,13 @@
("ghc-edisoncore" ,ghc-edisoncore)
("ghc-edit-distance" ,ghc-edit-distance)
("ghc-equivalence" ,ghc-equivalence)
+ ("ghc-filemanip" ,ghc-filemanip)
("ghc-geniplate-mirror" ,ghc-geniplate-mirror)
("ghc-gitrev" ,ghc-gitrev)
("ghc-happy" ,ghc-happy)
("ghc-hashable" ,ghc-hashable)
("ghc-hashtables" ,ghc-hashtables)
("ghc-ieee754" ,ghc-ieee754)
- ("ghc-monadplus" ,ghc-monadplus)
("ghc-murmur-hash" ,ghc-murmur-hash)
("ghc-uri-encode" ,ghc-uri-encode)
("ghc-parallel" ,ghc-parallel)
@@ -70,9 +71,50 @@
(arguments
`(#:modules ((guix build haskell-build-system)
(guix build utils)
- (srfi srfi-26))
+ (srfi srfi-26)
+ (ice-9 match))
#:phases
(modify-phases %standard-phases
+ ;; FIXME: This is a copy of the standard configure phase with a tiny
+ ;; difference: this package needs the -package-db flag to be passed
+ ;; to "runhaskell" in addition to the "configure" action, because
+ ;; Setup.hs depends on filemanip. Without this option the Setup.hs
+ ;; file cannot be evaluated. The haskell-build-system should be
+ ;; changed to pass "-package-db" to "runhaskell" in any case.
+ (replace 'configure
+ (lambda* (#:key outputs inputs tests? (configure-flags '())
+ #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (input-dirs (match inputs
+ (((_ . dir) ...)
+ dir)
+ (_ '())))
+ (ghc-path (getenv "GHC_PACKAGE_PATH"))
+ (params (append `(,(string-append "--prefix=" out))
+ `(,(string-append "--libdir=" out "/lib"))
+ `(,(string-append "--bindir=" out "/bin"))
+ `(,(string-append
+ "--docdir=" out
+ "/share/doc/" ((@@ (guix build
haskell-build-system)
+
package-name-version) out)))
+ '("--libsubdir=$compiler/$pkg-$version")
+ '("--package-db=../package.conf.d")
+ '("--global")
+ `(,@(map
+ (cut string-append
"--extra-include-dirs=" <>)
+ (search-path-as-list '("include")
input-dirs)))
+ `(,@(map
+ (cut string-append
"--extra-lib-dirs=" <>)
+ (search-path-as-list '("lib")
input-dirs)))
+ (if tests?
+ '("--enable-tests")
+ '())
+ configure-flags)))
+ (unsetenv "GHC_PACKAGE_PATH")
+ (apply invoke "runhaskell" "-package-db=../package.conf.d"
+ "Setup.hs" "configure" params)
+ (setenv "GHC_PACKAGE_PATH" ghc-path)
+ #t)))
(add-after 'compile 'agda-compile
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
- 264/272: gnu: git-annex: Update to 6.20180926., (continued)
- 264/272: gnu: git-annex: Update to 6.20180926., Ricardo Wurmus, 2018/10/01
- 130/272: gnu: ghc-extra: Update to 1.6.9., Ricardo Wurmus, 2018/10/01
- 142/272: gnu: ghc-unliftio: Update to 0.2.7.0., Ricardo Wurmus, 2018/10/01
- 148/272: gnu: ghc-th-orphans: Update to 0.13.6., Ricardo Wurmus, 2018/10/01
- 162/272: gnu: ghc-bytes: Update to 0.15.5., Ricardo Wurmus, 2018/10/01
- 171/272: gnu: ghc-x509-validation: Update to 1.6.10., Ricardo Wurmus, 2018/10/01
- 174/272: gnu: ghc-bifunctors: Update to 5.5.3., Ricardo Wurmus, 2018/10/01
- 188/272: gnu: ghc-aeson-pretty: Update to 0.8.7., Ricardo Wurmus, 2018/10/01
- 239/272: gnu: Remove old versions of ghc-doctest., Ricardo Wurmus, 2018/10/01
- 256/272: gnu: ghc-base-compat: Update to 0.10.4., Ricardo Wurmus, 2018/10/01
- 265/272: gnu: agda: Fix build.,
Ricardo Wurmus <=
- 139/272: gnu: ghc-half: Update to 0.3., Ricardo Wurmus, 2018/10/01
- 258/272: gnu: Add ghc-weigh., Ricardo Wurmus, 2018/10/01
- 131/272: gnu: ghc-pem: Update to 0.2.4., Ricardo Wurmus, 2018/10/01
- 183/272: gnu: ghc-tasty-th: Update to 0.1.7., Ricardo Wurmus, 2018/10/01
- 207/272: gnu: ghc-adjunctions: Update to 4.4., Ricardo Wurmus, 2018/10/01
- 213/272: gnu: ghc-rebase: Update to 1.2.4., Ricardo Wurmus, 2018/10/01
- 242/272: gnu: ghc-yesod-core: Update to 1.6.6., Ricardo Wurmus, 2018/10/01
- 230/272: gnu: cabal-install: Update to 2.2.0.0., Ricardo Wurmus, 2018/10/01
- 243/272: gnu: ghc-persistent-sqlite: Update to 2.8.2., Ricardo Wurmus, 2018/10/01
- 247/272: gnu: ghc-haddock-library: Update to 1.5.0.1., Ricardo Wurmus, 2018/10/01