* Perl builder: run tests by default.

svn path=/nixpkgs/trunk/; revision=14041
This commit is contained in:
Eelco Dolstra 2009-02-12 15:56:35 +00:00
parent 09bb1e1116
commit 61e7bd7372
2 changed files with 15 additions and 10 deletions

View File

@ -2,14 +2,10 @@ source $stdenv/setup
PERL5LIB="$PERL5LIB${PERL5LIB:+:}$out/lib/site_perl"
oldIFS=$IFS
IFS=:
perlFlags=
for i in $PERL5LIB; do
for i in $(IFS=:; echo $PERL5LIB); do
perlFlags="$perlFlags -I$i"
done
IFS=$oldIFS
echo "Perl flags: $perlFlags"
oldPreConfigure="$preConfigure"
preConfigure=preConfigure

View File

@ -2,8 +2,17 @@ perl:
attrs:
perl.stdenv.mkDerivation (attrs // {
name = "perl-" + attrs.name;
builder = ./builder.sh;
buildInputs = [(if attrs ? buildInputs then attrs.buildInputs else []) perl];
})
perl.stdenv.mkDerivation (
{
doCheck = true;
checkTarget = "test";
}
//
attrs
//
{
name = "perl-" + attrs.name;
builder = ./builder.sh;
buildInputs = [(if attrs ? buildInputs then attrs.buildInputs else []) perl];
}
)