xxdiff: fix build

This commit is contained in:
Joerg Thalheim 2017-11-21 00:21:06 +00:00
parent 1af0254fc7
commit 06bfed3d7f

View File

@ -15,16 +15,13 @@ stdenv.mkDerivation rec {
buildInputs = [ qtbase ];
preConfigure = ''
ln -s ${qtbase.dev}/mkspecs/* ../__nix_qt*__/mkspecs
ln -s ${qtbase.dev}/bin/* ../__nix_qt*__/bin || true
cd src
make -f Makefile.bootstrap
'';
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";
postInstall = ''
install -D ../bin/xxdiff $out/bin/xxdiff
'';
meta = with stdenv.lib; {
homepage = http://furius.ca/xxdiff/;