* 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"
|
||||
|
||||
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
|
||||
|
@ -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];
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user