* Perl builder: run tests by default.
svn path=/nixpkgs/trunk/; revision=14041
This commit is contained in:
parent
09bb1e1116
commit
61e7bd7372
@ -2,14 +2,10 @@ source $stdenv/setup
|
|||||||
|
|
||||||
PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/site_perl"
|
PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/site_perl"
|
||||||
|
|
||||||
oldIFS=$IFS
|
|
||||||
IFS=:
|
|
||||||
perlFlags=
|
perlFlags=
|
||||||
for i in $PERL5LIB; do
|
for i in $(IFS=:; echo $PERL5LIB); do
|
||||||
perlFlags="$perlFlags -I$i"
|
perlFlags="$perlFlags -I$i"
|
||||||
done
|
done
|
||||||
IFS=$oldIFS
|
|
||||||
echo "Perl flags: $perlFlags"
|
|
||||||
|
|
||||||
oldPreConfigure="$preConfigure"
|
oldPreConfigure="$preConfigure"
|
||||||
preConfigure=preConfigure
|
preConfigure=preConfigure
|
||||||
|
@ -2,8 +2,17 @@ perl:
|
|||||||
|
|
||||||
attrs:
|
attrs:
|
||||||
|
|
||||||
perl.stdenv.mkDerivation (attrs // {
|
perl.stdenv.mkDerivation (
|
||||||
name = "perl-" + attrs.name;
|
{
|
||||||
builder = ./builder.sh;
|
doCheck = true;
|
||||||
buildInputs = [(if attrs ? buildInputs then attrs.buildInputs else []) perl];
|
checkTarget = "test";
|
||||||
})
|
}
|
||||||
|
//
|
||||||
|
attrs
|
||||||
|
//
|
||||||
|
{
|
||||||
|
name = "perl-" + attrs.name;
|
||||||
|
builder = ./builder.sh;
|
||||||
|
buildInputs = [(if attrs ? buildInputs then attrs.buildInputs else []) perl];
|
||||||
|
}
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user