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:
parent
d3c827e419
commit
d8c66da7c1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue