gnu: clusterssh: Don't propagate xterm.

* gnu/packages/admin.scm (clusterssh)[arguments]: Add ‘refer-to-inputs’ and ‘delete-failing-tests’ phases.
[inputs]: Move xterm to here…
[propagated-inputs]: …from here.
This commit is contained in:
Tobias Geerinckx-Rice 2019-07-25 18:59:38 +02:00
parent b07aea69dd
commit 12ea257122
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 22 additions and 2 deletions

View File

@ -913,6 +913,25 @@ by bandwidth they use.")
(base32 (base32
"0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp")))) "0rmk2p3f2wz1h092anidjclh212rv3gxyk0c641qk3frlrjnw6mp"))))
(build-system perl-build-system) (build-system perl-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'refer-to-inputs
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (list "lib/App/ClusterSSH/Config.pm"
"t/15config.t")
(("xterm")
(which "xterm")))
#t))
(add-before 'check 'delete-failing-tests
(lambda _
;; This checks whether all code is nicely formatted. The above
;; refer-to-inputs phase breaks this pedantry, so disable it.
(delete-file "t/perltidy.t")
;; Update the manifest so t/manifest.t happily passes.
(substitute* "MANIFEST"
(("t/perltidy.t\n") ""))
#t)))))
(native-inputs (native-inputs
`(("perl-cpan-changes" ,perl-cpan-changes) `(("perl-cpan-changes" ,perl-cpan-changes)
("perl-file-slurp" ,perl-file-slurp) ("perl-file-slurp" ,perl-file-slurp)
@ -926,9 +945,10 @@ by bandwidth they use.")
("perl-test-pod-coverage" ,perl-test-pod-coverage) ("perl-test-pod-coverage" ,perl-test-pod-coverage)
("perl-test-trap" ,perl-test-trap) ("perl-test-trap" ,perl-test-trap)
("perltidy" ,perltidy))) ("perltidy" ,perltidy)))
(inputs
`(("xterm" ,xterm)))
(propagated-inputs (propagated-inputs
`(("xterm" ,xterm) `(("perl-exception-class" ,perl-exception-class)
("perl-exception-class" ,perl-exception-class)
("perl-sort-naturally" ,perl-sort-naturally) ("perl-sort-naturally" ,perl-sort-naturally)
("perl-tk" ,perl-tk) ("perl-tk" ,perl-tk)
("perl-try-tiny" ,perl-try-tiny) ("perl-try-tiny" ,perl-try-tiny)