2017-08-28 22:14:11 +02:00
|
|
|
{ stdenv, fetchFromBitbucket, qtbase, flex, bison, docutils }:
|
2017-03-18 12:19:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-08-28 22:14:11 +02:00
|
|
|
name = "xxdiff-4.0.1.20170623";
|
2017-03-18 12:19:10 +01:00
|
|
|
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "blais";
|
|
|
|
repo = "xxdiff";
|
2017-08-28 22:14:11 +02:00
|
|
|
rev = "5e5f885dfc43559549a81c59e9e8c9525306356a";
|
|
|
|
sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w";
|
2017-03-18 12:19:10 +01:00
|
|
|
};
|
|
|
|
|
2017-08-28 22:14:11 +02:00
|
|
|
nativeBuildInputs = [ flex bison docutils ];
|
2017-03-18 12:19:10 +01:00
|
|
|
|
2017-08-28 22:14:11 +02:00
|
|
|
buildInputs = [ qtbase ];
|
2017-03-18 12:19:10 +01:00
|
|
|
|
2018-01-13 19:40:43 +01:00
|
|
|
# Fixes build with Qt 5.9
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
|
|
|
|
|
2017-03-18 12:19:10 +01:00
|
|
|
preConfigure = ''
|
2017-11-21 01:21:06 +01:00
|
|
|
cd src
|
|
|
|
make -f Makefile.bootstrap
|
2017-03-18 12:19:10 +01:00
|
|
|
'';
|
|
|
|
|
2017-11-21 01:21:06 +01:00
|
|
|
postInstall = ''
|
|
|
|
install -D ../bin/xxdiff $out/bin/xxdiff
|
|
|
|
'';
|
2017-03-18 12:19:10 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|