Author: raskin Date: Tue Aug 23 17:52:05 2011 New Revision: 28787 URL: https://svn.nixos.org/websvn/nix/?rev=28787&sc=1
Log: Fix xmacro build Modified: nixpkgs/trunk/pkgs/tools/X11/xmacro/default.nix Modified: nixpkgs/trunk/pkgs/tools/X11/xmacro/default.nix ============================================================================== --- nixpkgs/trunk/pkgs/tools/X11/xmacro/default.nix Tue Aug 23 17:45:40 2011 (r28786) +++ nixpkgs/trunk/pkgs/tools/X11/xmacro/default.nix Tue Aug 23 17:52:05 2011 (r28787) @@ -8,7 +8,12 @@ md5 = "d2956b82f3d5380e58a75ccc721fb746"; }; - preBuild = " sed -e 's/-pedantic//g' -i Makefile "; + preBuild = '' + sed -e 's/-pedantic//g' -i Makefile + sed -e 's/iostream[.]h/iostream/' -i *.cpp + sed -e 's/iomanip[.]h/iomanip/' -i *.cpp + sed -e '1iusing namespace std;' -i *.cpp + ''; preInstall = "echo -e 'install:\n mkdir \${out}/bin;\n cp xmacrorec xmacrorec2 xmacroplay \${out}/bin;' >>Makefile; "; _______________________________________________ nix-commits mailing list nix-comm...@cs.uu.nl http://mail.cs.uu.nl/mailman/listinfo/nix-commits