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-11-21 00:21:06 +00:00
|
|
|
cd src
|
|
|
|
make -f Makefile.bootstrap
|
2017-03-18 11:19:10 +00:00
|
|
|
'';
|
|
|
|
|
2017-11-21 00:21:06 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -D ../bin/xxdiff $out/bin/xxdiff
|
|
|
|
'';
|
2017-03-18 11:19:10 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|