nixpkgs-suyu/pkgs/tools/X11/xmacro/default.nix
Michael Raskin e9a5a5d819 Fix xmacro build
svn path=/nixpkgs/trunk/; revision=28787
2011-08-23 17:52:05 +00:00

21 lines
654 B
Nix

{ stdenv, fetchurl, libX11, libXtst, xextproto, libXi, inputproto }:
stdenv.mkDerivation {
name = "xmacro-0.3pre20000911";
src = fetchurl {
url = mirror://sourceforge/xmacro/xmacro-pre0.3-20000911.tar.gz;
md5 = "d2956b82f3d5380e58a75ccc721fb746";
};
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; ";
buildInputs = [ libX11 libXtst xextproto libXi inputproto ];
}