Skip to content

Commit

Permalink
xxdiff: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Nov 21, 2017
1 parent 1af0254 commit 06bfed3
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions pkgs/development/tools/misc/xxdiff/tip.nix
Expand Up @@ -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/;
Expand Down

0 comments on commit 06bfed3

Please sign in to comment.