Fixing spin's references to cpp

svn path=/nixpkgs/trunk/; revision=15478
This commit is contained in:
Lluís Batlle i Rossell 2009-05-06 21:03:49 +00:00
parent 5d9d28fb1f
commit 166f375bd2

View File

@ -8,9 +8,12 @@ stdenv.mkDerivation {
sha256 = "03c6bmar4z13jx7dddb029f0qnmgl8x4hyfwn3qijjyd4dbliiw6";
};
preConfigure = "cd Src*";
buildInputs = [ flex yacc tk ];
patchPhase = ''
cd Src*
sed -i -e 's/-DNXT/-DNXT -DCPP="\\"gcc -E -x c\\""/' makefile
'';
installPhase = ''
ensureDir $out/bin
cp ../Xspin*/xsp* $out/bin/xspin