1{ stdenv, fetchFromBitbucket, qtbase, flex, bison, docutils }:
2
3stdenv.mkDerivation rec {
4 name = "xxdiff-4.0.1.20170623";
5
6 src = fetchFromBitbucket {
7 owner = "blais";
8 repo = "xxdiff";
9 rev = "5e5f885dfc43559549a81c59e9e8c9525306356a";
10 sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w";
11 };
12
13 nativeBuildInputs = [ flex bison docutils ];
14
15 buildInputs = [ qtbase ];
16
17 # Fixes build with Qt 5.9
18 NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
19
20 preConfigure = ''
21 cd src
22 make -f Makefile.bootstrap
23 '';
24
25 postInstall = ''
26 install -D ../bin/xxdiff $out/bin/xxdiff
27 '';
28
29 meta = with stdenv.lib; {
30 homepage = http://furius.ca/xxdiff/;
31 description = "Graphical file and directories comparator and merge tool";
32 license = licenses.gpl2;
33 platforms = platforms.linux;
34 maintainers = with maintainers; [ pSub raskin ];
35 };
36}