2008-05-25 22:43:56 +02:00
|
|
|
args : with args;
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://downloads.sourceforge.net/xxdiff/xxdiff-3.2.tar.bz2;
|
|
|
|
sha256 = "1f5j9l9n5j2ab0h3iwaz0mnz0y8h7ilc0dbcrfmaibk2njx38mcn";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [qt flex bison python pkgconfig makeWrapper
|
|
|
|
libX11 libXext];
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be specified separately */
|
2009-05-10 07:27:52 +02:00
|
|
|
phaseNames = ["prepareMainBuild" "fixInc"
|
2008-05-25 22:43:56 +02:00
|
|
|
"deploy"
|
|
|
|
"installPythonPackage"
|
|
|
|
(makeManyWrappers
|
|
|
|
''$out/bin/*''
|
|
|
|
''--prefix PYTHONPATH : $(toPythonPath $out):$PYTHONPATH'')
|
|
|
|
];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
prepareMainBuild = fullDepEntry (''
|
2008-05-25 22:43:56 +02:00
|
|
|
cd src
|
|
|
|
export QTDIR=${qt}/
|
|
|
|
make -f Makefile.bootstrap makefile
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
fixInc = fullDepEntry(''
|
2009-05-10 07:27:52 +02:00
|
|
|
sed -e '1i\#include <stdlib.h>' -i resources.inline.h
|
|
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
deploy = fullDepEntry (''
|
2008-05-25 22:43:56 +02:00
|
|
|
ensureDir $out/bin/
|
|
|
|
cp ../bin/xxdiff $out/bin
|
|
|
|
cd ..
|
|
|
|
'') ["minInit" "doMake" "defEnsureDir" "addInputs"];
|
|
|
|
|
2009-03-24 20:24:14 +01:00
|
|
|
name = "xxdiff-" + version;
|
2008-05-25 22:43:56 +02:00
|
|
|
meta = {
|
|
|
|
description = "Interactive merge tool";
|
|
|
|
};
|
|
|
|
}
|