1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 05:00:16 +00:00

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