nixpkgs-suyu/pkgs/development/tools/misc/xxdiff/tip.nix
Bastian Köcher 0da61beee9 xxdiff-tip: 20170101 -> 20170623
Updates the xxdiff-tip version and fixes compilation errors by forcing qt5.6.
2017-08-28 22:14:11 +02:00

36 lines
1.1 KiB
Nix

{ stdenv, fetchFromBitbucket, qtbase, flex, bison, docutils }:
stdenv.mkDerivation rec {
name = "xxdiff-4.0.1.20170623";
src = fetchFromBitbucket {
owner = "blais";
repo = "xxdiff";
rev = "5e5f885dfc43559549a81c59e9e8c9525306356a";
sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w";
};
nativeBuildInputs = [ flex bison docutils ];
buildInputs = [ qtbase ];
preConfigure = ''
ln -s ${qtbase.dev}/mkspecs/* ../__nix_qt*__/mkspecs
ln -s ${qtbase.dev}/bin/* ../__nix_qt*__/bin || true
'';
NIX_CFLAGS_COMPILE="-I${qtbase.dev}/include/QtCore -I${qtbase.dev}/include/QtGui -I${qtbase.dev}/include/QtWidgets";
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 ];
};
}