diff options
author | Federico Beffa <beffa@fbengineering.ch> | 2015-11-25 14:47:16 +0100 |
---|---|---|
committer | Federico Beffa <beffa@fbengineering.ch> | 2015-11-26 18:17:23 +0100 |
commit | d8c66da7c1566f0fb9156ebfe0f4108282fd4a10 (patch) | |
tree | f460e6afa8a9e232a0dff24911b67c42b4e4e5aa | |
parent | d3c827e41908f98f2ebb9db4050f2bf7051715e2 (diff) | |
download | patches-d8c66da7c1566f0fb9156ebfe0f4108282fd4a10.tar patches-d8c66da7c1566f0fb9156ebfe0f4108282fd4a10.tar.gz |
import: hackage: Assume current 'ghc' package version.
* guix/scripts/import/hackage.scm (%default-options): Do it.
(ghc-default-version): New variable.
-rw-r--r-- | guix/scripts/import/hackage.scm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/guix/scripts/import/hackage.scm b/guix/scripts/import/hackage.scm index 97d042be3e..4e84278a78 100644 --- a/guix/scripts/import/hackage.scm +++ b/guix/scripts/import/hackage.scm @@ -19,6 +19,7 @@ (define-module (guix scripts import hackage) #:use-module (guix ui) #:use-module (guix utils) + #:use-module (guix packages) #:use-module (guix scripts) #:use-module (guix import hackage) #:use-module (guix scripts import) @@ -34,10 +35,13 @@ ;;; Command-line options. ;;; +(define ghc-default-version + (string-append "ghc-" (package-version (@ (gnu packages haskell) ghc)))) + (define %default-options - '((include-test-dependencies? . #t) + `((include-test-dependencies? . #t) (read-from-stdin? . #f) - ('cabal-environment . '()))) + (cabal-environment . ,`(("impl" . ,ghc-default-version))))) (define (show-help) (display (_ "Usage: guix import hackage PACKAGE-NAME |