7f5b839524
`selectVersion ./foo "bar"' instead of `import ./foo/bar.nix'. * Replaced `with args' with formal function arguments in several packages. * Renamed several files to `default.nix'. As a general rule, version numbers should only be included in the filename when there is a reason to keep multiple versions of a package in Nixpkgs. Otherwise, it just makes it harder to update the package. svn path=/nixpkgs/trunk/; revision=18403
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
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 */
|
|
phaseNames = ["prepareMainBuild" "fixInc"
|
|
"deploy"
|
|
"installPythonPackage"
|
|
(makeManyWrappers
|
|
''$out/bin/*''
|
|
''--prefix PYTHONPATH : $(toPythonPath $out):$PYTHONPATH'')
|
|
];
|
|
|
|
prepareMainBuild = fullDepEntry (''
|
|
cd src
|
|
export QTDIR=${qt}/
|
|
make -f Makefile.bootstrap makefile
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
fixInc = fullDepEntry(''
|
|
sed -e '1i\#include <stdlib.h>' -i resources.inline.h
|
|
'') ["minInit" "doUnpack"];
|
|
|
|
deploy = fullDepEntry (''
|
|
ensureDir $out/bin/
|
|
cp ../bin/xxdiff $out/bin
|
|
cd ..
|
|
'') ["minInit" "doMake" "defEnsureDir" "addInputs"];
|
|
|
|
name = "xxdiff-3.2";
|
|
meta = {
|
|
description = "Interactive merge tool";
|
|
};
|
|
}
|