* Use substituteInPlace.

svn path=/nixpkgs/trunk/; revision=7489
This commit is contained in:
Eelco Dolstra 2006-12-27 17:23:34 +00:00
parent 592cb44e52
commit 7ca9054420
2 changed files with 3 additions and 4 deletions

View file

@ -8,9 +8,7 @@ stdenv.mkDerivation {
};
preBuild = "
sed 's|/usr/include|${stdenv.glibc}/include|' < libcap/Makefile > libcap/Makefile.tmp
mv libcap/Makefile.tmp libcap/Makefile
substituteInPlace libcap/Makefile --replace /usr/include ${stdenv.glibc}/include
installFlags=\"LIBDIR=$out/lib INCDIR=$out/include SBINDIR=$out/sbin MANDIR=$out/man\"
";

View file

@ -2212,7 +2212,8 @@ rec {
};
libcap = import ../os-specific/linux/libcap {
inherit fetchurl stdenv;
inherit fetchurl;
stdenv = overrideSetup stdenv ../stdenv/generic/setup-new2.sh;
};
lvm2 = import ../os-specific/linux/lvm2 {