aboutsummaryrefslogtreecommitdiff
path: root/berlin.guixsd.org.pub
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2018-03-23 02:33:31 -0400
committerMark H Weaver <mhw@netris.org>2018-03-23 04:42:13 -0400
commitfe92152133eb5009b1d6db7fd8f6ba20571c0768 (patch)
treea1371d949b09e18b8e54c2d8cb68957ebc8ac26f /berlin.guixsd.org.pub
parent2057ea6825161f4457cbfb63dc1c1afd2573129a (diff)
downloadguix-fe92152133eb5009b1d6db7fd8f6ba20571c0768.tar.gz
guix-fe92152133eb5009b1d6db7fd8f6ba20571c0768.zip
gnu: hurd-headers: Use invoke.
* gnu/packages/hurd.scm (hurd-headers)[arguments]: Use invoke in the custom install phase.
Diffstat (limited to 'berlin.guixsd.org.pub')
0 files changed, 0 insertions, 0 deletions
oo.scm"<<EOF (define-module (foo) #:use-module (guix packages) #:use-module (gnu packages base)) (define-public dummy (package (inherit hello) (name "dummy") (version "42") (synopsis "dummy package") (description "dummy package. Only used for testing purposes."))) EOF GUIX_PACKAGE_PATH="$module_dir" export GUIX_PACKAGE_PATH grep_warning () { res=`echo "$1" | grep -E -c "(synopsis|description) should"` echo $res } # Three issues with the dummy package: # 1) the synopsis starts with the package name; # 2) the synopsis starts with a lower-case letter; # 3) the description has a single space following the end-of-sentence period. out=`guix lint -c synopsis,description dummy 2>&1` if [ `grep_warning "$out"` -ne 3 ] then false; else true; fi out=`guix lint -c synopsis dummy 2>&1` if [ `grep_warning "$out"` -ne 2 ] then false; else true; fi out=`guix lint -c description dummy 2>&1` if [ `grep_warning "$out"` -ne 1 ] then false; else true; fi out=`guix lint -c description,synopsis dummy 2>&1` if [ `grep_warning "$out"` -ne 3 ] then false; else true; fi if guix lint -c synopsis,invalid-checker dummy 2>&1 | \ grep -q 'invalid-checker: invalid checker' then true; else false; fi # Make sure specifying multiple packages works. guix lint -c inputs-should-be-native dummy dummy@42 dummy