Clean up when building from a working tree

This commit is contained in:
Eelco Dolstra 2012-03-18 22:10:59 +01:00
parent bd50c01972
commit 2e0322efd1

View file

@ -20,7 +20,7 @@ let
buildInputs =
[ curl bison24 flex2535 perl libxml2 libxslt w3m bzip2
tetex dblatex nukeReferences pkgconfig
tetex dblatex nukeReferences pkgconfig git
];
configureFlags = ''
@ -31,6 +31,11 @@ let
--with-dbd-sqlite=${perlPackages.DBDSQLite}/lib/perl5/site_perl
'';
postUnpack = ''
# Clean up when building from a working tree.
(cd $sourceRoot && (git ls-files -o | xargs rm -v))
'';
# Include the Bzip2 tarball in the distribution.
preConfigure = ''
stripHash ${bzip2.src}