* Enable FS translation to be enabled.

svn path=/nixpkgs/trunk/; revision=17375
This commit is contained in:
Eelco Dolstra 2009-09-23 20:10:39 +00:00
parent 27ada9a525
commit 46c576ad25

View File

@ -4,12 +4,13 @@
{ name ? "debian-build"
, diskImage
, src, stdenv, vmTools, checkinstall
, fsTranslation ? false
, ... } @ args:
vmTools.runInLinuxImage (stdenv.mkDerivation (
{
doCheck = true;
#doCheck = true;
prefix = "/usr";
@ -53,7 +54,9 @@ vmTools.runInLinuxImage (stdenv.mkDerivation (
eval "$preInstall"
export LOGNAME=root
${checkinstall}/sbin/checkinstall --nodoc -y -D --fstrans=no make install
${checkinstall}/sbin/checkinstall --nodoc -y -D \
--fstrans=${if fsTranslation then "yes" else "no"} \
make install
ensureDir $out/debs
find . -name "*.deb" -exec cp {} $out/debs \;