xxdiff: drop the old qt4 version in favour of qt5
This commit is contained in:
parent
59d65e23e1
commit
c78216067b
|
@ -1,28 +1,51 @@
|
||||||
{ stdenv, fetchurl, qt4, flex, bison, docutils }:
|
{ lib, mkDerivation, fetchFromBitbucket, docutils, bison, flex, qmake
|
||||||
|
, qtbase
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
name = "xxdiff-4.0.1";
|
pname = "xxdiff";
|
||||||
|
version = "5.0b1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromBitbucket {
|
||||||
url = "mirror://sourceforge/xxdiff/${name}.tar.bz2";
|
owner = "blais";
|
||||||
sha256 = "0050qd12fvlcfdh0iwjsaxgxdq7jsl70f85fbi7pz23skpddsn5z";
|
repo = pname;
|
||||||
|
rev = "5e5f885dfc43559549a81c59e9e8c9525306356a";
|
||||||
|
sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ flex bison qt4 docutils ];
|
nativeBuildInputs = [ bison docutils flex qmake ];
|
||||||
|
|
||||||
buildInputs = [ qt4 ];
|
buildInputs = [ qtbase ];
|
||||||
|
|
||||||
QMAKE = "qmake";
|
dontUseQmakeConfigure = true;
|
||||||
|
|
||||||
configurePhase = "cd src; make -f Makefile.bootstrap";
|
# c++11 and above is needed for building with Qt 5.9+
|
||||||
|
NIX_CFLAGS_COMPILE = [ "-std=c++14" ];
|
||||||
|
|
||||||
installPhase = "mkdir -pv $out/bin; cp -v ../bin/xxdiff $out/bin";
|
sourceRoot = "source/src";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
postPatch = ''
|
||||||
homepage = http://furius.ca/xxdiff/;
|
substituteInPlace xxdiff.pro --replace ../bin ./bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
make -f Makefile.bootstrap
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
install -Dm555 -t $out/bin ./bin/xxdiff
|
||||||
|
install -Dm444 -t $out/share/doc/${pname} ${src}/README
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Graphical file and directories comparator and merge tool";
|
description = "Graphical file and directories comparator and merge tool";
|
||||||
|
homepage = "http://furius.ca/xxdiff/";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
maintainers = with maintainers; [ pSub raskin ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ pSub ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
{ stdenv, fetchFromBitbucket, qtbase, flex, bison, docutils }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "xxdiff-5.0b1";
|
|
||||||
|
|
||||||
src = fetchFromBitbucket {
|
|
||||||
owner = "blais";
|
|
||||||
repo = "xxdiff";
|
|
||||||
rev = "5e5f885dfc43559549a81c59e9e8c9525306356a";
|
|
||||||
sha256 = "0gbvxrkwkbvag3298j89smszghpr8ilxxfb0cvsknfqdf15b296w";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [ flex bison docutils ];
|
|
||||||
|
|
||||||
buildInputs = [ qtbase ];
|
|
||||||
|
|
||||||
# Fixes build with Qt 5.9
|
|
||||||
NIX_CFLAGS_COMPILE = [ "-std=c++11" ];
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
cd src
|
|
||||||
make -f Makefile.bootstrap
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
install -D ../bin/xxdiff $out/bin/xxdiff
|
|
||||||
'';
|
|
||||||
|
|
||||||
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 ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -10192,10 +10192,9 @@ in
|
||||||
|
|
||||||
xpwn = callPackage ../development/mobile/xpwn {};
|
xpwn = callPackage ../development/mobile/xpwn {};
|
||||||
|
|
||||||
xxdiff = callPackage ../development/tools/misc/xxdiff {
|
xxdiff = libsForQt5.callPackage ../development/tools/misc/xxdiff { };
|
||||||
bison = bison2;
|
|
||||||
};
|
xxdiff-tip = xxdiff;
|
||||||
xxdiff-tip = libsForQt5.callPackage ../development/tools/misc/xxdiff/tip.nix { };
|
|
||||||
|
|
||||||
yaml2json = callPackage ../development/tools/yaml2json { };
|
yaml2json = callPackage ../development/tools/yaml2json { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue