2017-08-28 21:14:11 +01:00
|
|
|
{ stdenv, fetchFromBitbucket, qtbase, flex, bison, docutils }:
|
2017-03-18 11:19:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-28 21:14:11 +01:00
|
|
|
name = "xxdiff-4.0.1.20170623";
|
2017-03-18 11:19:10 +00:00
|
|
|
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "blais";
|
|
|
|
repo = "xxdiff";
|
2017-08-28 21:14:11 +01:00
|
|
|
rev = "5e5f885dfc43559549a81c59e9e8c9525306356a";
|
|
|
|
sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w";
|
2017-03-18 11:19:10 +00:00
|
|
|
};
|
|
|
|
|
2017-08-28 21:14:11 +01:00
|
|
|
nativeBuildInputs = [ flex bison docutils ];
|
2017-03-18 11:19:10 +00:00
|
|
|
|
2017-08-28 21:14:11 +01:00
|
|
|
buildInputs = [ qtbase ];
|
2017-03-18 11:19:10 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2017-08-28 21:14:11 +01:00
|
|
|
ln -s ${qtbase.dev}/mkspecs/* ../__nix_qt*__/mkspecs
|
|
|
|
ln -s ${qtbase.dev}/bin/* ../__nix_qt*__/bin || true
|
2017-03-18 11:19:10 +00:00
|
|
|
'';
|
|
|
|
|
2017-08-28 21:14:11 +01:00
|
|
|
NIX_CFLAGS_COMPILE="-I${qtbase.dev}/include/QtCore -I${qtbase.dev}/include/QtGui -I${qtbase.dev}/include/QtWidgets";
|
2017-03-18 11:19:10 +00:00
|
|
|
|
|
|
|
configurePhase = "${preConfigure} cd src; make -f Makefile.bootstrap";
|
|
|
|
|
|
|
|
installPhase = "mkdir -pv $out/bin; cp -v ../bin/xxdiff $out/bin";
|
|
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://furius.ca/xxdiff/;
|
|
|
|
description = "Graphical file and directories comparator and merge tool";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub raskin ];
|
|
|
|
};
|
|
|
|
}
|