summary refs log tree commit diff
path: root/pkgs/tools/X11/xmacro/default.nix
blob: 8f9231ef3e3a4d92b8701ff8ad0caff125130b52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
args:
args.stdenv.mkDerivation {
  name = "xmacro";

  src = args.fetchurl {
    url = http://dfn.dl.sourceforge.net/sourceforge/xmacro/xmacro-pre0.3-20000911.tar.gz;
    md5 = "d2956b82f3d5380e58a75ccc721fb746";
  };

  preBuild=" sed -e 's/-pedantic//g' -i Makefile ";

  preInstall="echo -e 'install:\n	mkdir \${out}/bin;\n	cp xmacrorec xmacrorec2 xmacroplay \${out}/bin;' >>Makefile; ";

  buildInputs = (with args; 
	[libX11 libXtst xextproto libXi inputproto]);
}