me
/
guix
Archived
1
0
Fork 0

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

* guix/scripts/import/hackage.scm (%default-options): Do it.
  (ghc-default-version): New variable.
master
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)
#: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