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 ]; buildInputs = [ qtbase ];
preConfigure = '' preConfigure = ''
ln -s ${qtbase.dev}/mkspecs/* ../__nix_qt*__/mkspecs cd src
ln -s ${qtbase.dev}/bin/* ../__nix_qt*__/bin || true make -f Makefile.bootstrap
''; '';
NIX_CFLAGS_COMPILE="-I${qtbase.dev}/include/QtCore -I${qtbase.dev}/include/QtGui -I${qtbase.dev}/include/QtWidgets"; postInstall = ''
install -D ../bin/xxdiff $out/bin/xxdiff
configurePhase = "${preConfigure} cd src; make -f Makefile.bootstrap"; '';
installPhase = "mkdir -pv $out/bin; cp -v ../bin/xxdiff $out/bin";
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://furius.ca/xxdiff/; homepage = http://furius.ca/xxdiff/;