From 166f375bd2a30ff875796522ca240dc1752193da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Wed, 6 May 2009 21:03:49 +0000 Subject: [PATCH] Fixing spin's references to cpp svn path=/nixpkgs/trunk/; revision=15478 --- pkgs/development/tools/analysis/spin/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/analysis/spin/default.nix b/pkgs/development/tools/analysis/spin/default.nix index f2a48cc09339..cedd9584414f 100644 --- a/pkgs/development/tools/analysis/spin/default.nix +++ b/pkgs/development/tools/analysis/spin/default.nix @@ -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