2010-07-28 17:35:01 +02:00
|
|
|
{ stdenv, fetchurl, libX11, libXtst, xextproto, libXi, inputproto }:
|
2009-10-28 15:06:56 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
stdenv.mkDerivation {
|
2009-10-28 15:06:56 +01:00
|
|
|
name = "xmacro-0.3pre20000911";
|
2007-08-10 20:54:44 +02:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2007-08-27 15:01:33 +02:00
|
|
|
url = mirror://sourceforge/xmacro/xmacro-pre0.3-20000911.tar.gz;
|
2014-10-12 16:13:21 +02:00
|
|
|
sha256 = "04gzgxhp8bx98zrcvmsm7mn72r9g9588skbf64cqvkp4yz6kfqhb";
|
2007-08-10 20:54:44 +02:00
|
|
|
};
|
|
|
|
|
2011-08-23 19:52:05 +02:00
|
|
|
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
|
|
|
|
'';
|
2007-08-10 20:54:44 +02:00
|
|
|
|
2010-07-28 17:35:01 +02:00
|
|
|
preInstall = "echo -e 'install:\n mkdir \${out}/bin;\n cp xmacrorec xmacrorec2 xmacroplay \${out}/bin;' >>Makefile; ";
|
2007-08-10 20:54:44 +02:00
|
|
|
|
2010-07-28 17:35:01 +02:00
|
|
|
buildInputs = [ libX11 libXtst xextproto libXi inputproto ];
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2007-08-10 20:54:44 +02:00
|
|
|
}
|