1 { lib, mkDerivation, fetchFromBitbucket, docutils, bison, flex, qmake
9 src = fetchFromBitbucket {
12 rev = "5e5f885dfc43559549a81c59e9e8c9525306356a";
13 sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w";
16 nativeBuildInputs = [ bison docutils flex qmake ];
18 buildInputs = [ qtbase ];
20 dontUseQmakeConfigure = true;
22 # c++11 and above is needed for building with Qt 5.9+
23 env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ];
25 sourceRoot = "${src.name}/src";
28 substituteInPlace xxdiff.pro --replace ../bin ./bin
32 make -f Makefile.bootstrap
38 install -Dm555 -t $out/bin ./bin/xxdiff
39 install -Dm444 -t $out/share/doc/${pname} ${src}/README
45 description = "Graphical file and directories comparator and merge tool";
46 mainProgram = "xxdiff";
47 homepage = "http://furius.ca/xxdiff/";
48 license = licenses.gpl2;
49 maintainers = with maintainers; [ pSub raskin ];
50 platforms = platforms.linux;