mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
xxdiff: fix build
This commit is contained in:
parent
1af0254fc7
commit
06bfed3d7f
@ -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/;
|
||||||
|
Loading…
Reference in New Issue
Block a user