import: hackage: Assume current 'ghc' package version.

* guix/scripts/import/hackage.scm (%default-options): Do it.
  (ghc-default-version): New variable.
This commit is contained in:
Federico Beffa 2015-11-25 14:47:16 +01:00
parent d3c827e419
commit d8c66da7c1
1 changed files with 6 additions and 2 deletions

View File

@ -19,6 +19,7 @@
(define-module (guix scripts import hackage) (define-module (guix scripts import hackage)
#:use-module (guix ui) #:use-module (guix ui)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix packages)
#:use-module (guix scripts) #:use-module (guix scripts)
#:use-module (guix import hackage) #:use-module (guix import hackage)
#:use-module (guix scripts import) #:use-module (guix scripts import)
@ -34,10 +35,13 @@
;;; Command-line options. ;;; Command-line options.
;;; ;;;
(define ghc-default-version
(string-append "ghc-" (package-version (@ (gnu packages haskell) ghc))))
(define %default-options (define %default-options
'((include-test-dependencies? . #t) `((include-test-dependencies? . #t)
(read-from-stdin? . #f) (read-from-stdin? . #f)
('cabal-environment . '()))) (cabal-environment . ,`(("impl" . ,ghc-default-version)))))
(define (show-help) (define (show-help)
(display (_ "Usage: guix import hackage PACKAGE-NAME (display (_ "Usage: guix import hackage PACKAGE-NAME