Skip to content

Commit

Permalink
gnu: guile-bash: Modernise.
Browse files Browse the repository at this point in the history
* gnu/packages/guile-xyz.scm (guile-bash)[inputs]: Use MODIFY-INPUTS.
[arguments]: Use SUBSTITUTE-KEYWORD-ARGUMENTS.
  • Loading branch information
nckx committed Aug 14, 2022
1 parent 19d576c commit ae74b30
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions gnu/packages/guile-xyz.scm
Original file line number Diff line number Diff line change
Expand Up @@ -476,19 +476,20 @@ and then run @command{scm example.scm}.")
(inherit guile2.0-bash)
(name "guile-bash")
(inputs
`(("guile" ,guile-3.0-latest)
,@(assoc-remove! (package-inputs guile2.0-bash) "guile")))
(modify-inputs (package-inputs guile2.0-bash)
(replace "guile" guile-3.0-latest)))
(arguments
`(#:tests? #f
#:phases (modify-phases %standard-phases
(add-after 'install 'install-guile
(lambda* (#:key inputs outputs #:allow-other-keys)
(copy-recursively
(string-append (assoc-ref outputs "out")
(assoc-ref inputs "guile") "/share")
(string-append (assoc-ref outputs "out") "/share"))
#t)))
,@(package-arguments guile2.0-bash)))))
(substitute-keyword-arguments (package-arguments guile2.0-bash)
;; XXX The tests succeed with Guile 2.0 but fail with 3.0.
((#:tests? _ #f) #f)
((#:phases phases #~%standard-phases)
#~(modify-phases #$phases
(add-after 'install 'install-guile
(lambda* (#:key inputs outputs #:allow-other-keys)
(copy-recursively
(string-append (assoc-ref outputs "out")
(assoc-ref inputs "guile") "/share")
(string-append (assoc-ref outputs "out") "/share"))))))))))

(define-public guile-8sync
(let ((commit "183b4f02e68279d4984e79b79e06bfcf1861fcbf") (revision "0"))
Expand Down

0 comments on commit ae74b30

Please sign in to comment.