2019-08-26 13:43:18 +01:00
|
|
|
{ lib, mkDerivation, fetchFromBitbucket, docutils, bison, flex, qmake
|
|
|
|
, qtbase
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "xxdiff";
|
|
|
|
version = "5.0b1";
|
|
|
|
|
|
|
|
src = fetchFromBitbucket {
|
|
|
|
owner = "blais";
|
|
|
|
repo = pname;
|
|
|
|
rev = "5e5f885dfc43559549a81c59e9e8c9525306356a";
|
|
|
|
sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w";
|
|
|
|
};
|
2012-01-07 20:23:35 +00:00
|
|
|
|
2019-08-26 13:43:18 +01:00
|
|
|
nativeBuildInputs = [ bison docutils flex qmake ];
|
2012-01-07 20:23:35 +00:00
|
|
|
|
2019-08-26 13:43:18 +01:00
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
dontUseQmakeConfigure = true;
|
|
|
|
|
|
|
|
# c++11 and above is needed for building with Qt 5.9+
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-std=c++14" ];
|
|
|
|
|
|
|
|
sourceRoot = "source/src";
|
2012-01-07 20:23:35 +00:00
|
|
|
|
2019-08-26 13:43:18 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace xxdiff.pro --replace ../bin ./bin
|
|
|
|
'';
|
2012-01-07 20:23:35 +00:00
|
|
|
|
2019-08-26 13:43:18 +01:00
|
|
|
preConfigure = ''
|
|
|
|
make -f Makefile.bootstrap
|
|
|
|
'';
|
2012-01-07 20:23:35 +00:00
|
|
|
|
2019-08-26 13:43:18 +01:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2012-01-07 20:23:35 +00:00
|
|
|
|
2019-08-26 13:43:18 +01:00
|
|
|
install -Dm555 -t $out/bin ./bin/xxdiff
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} ${src}/README
|
2012-01-07 20:23:35 +00:00
|
|
|
|
2019-08-26 13:43:18 +01:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2013-04-23 11:11:58 +01:00
|
|
|
|
2019-08-26 13:43:18 +01:00
|
|
|
meta = with lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Graphical file and directories comparator and merge tool";
|
2019-08-26 13:43:18 +01:00
|
|
|
homepage = "http://furius.ca/xxdiff/";
|
2016-11-19 16:18:13 +00:00
|
|
|
license = licenses.gpl2;
|
2019-08-26 13:43:18 +01:00
|
|
|
maintainers = with maintainers; [ pSub raskin ];
|
2016-11-19 16:18:13 +00:00
|
|
|
platforms = platforms.linux;
|
2013-08-15 11:25:03 +01:00
|
|
|
};
|
2012-01-07 20:23:35 +00:00
|
|
|
}
|