3
0
Fork 0
forked from mirrors/nixpkgs

libguestfs: fix build

This commit is contained in:
Peter Hoeg 2017-05-19 19:29:29 +08:00
parent 61451f1011
commit 0f59c9ce83

View file

@ -35,11 +35,15 @@ stdenv.mkDerivation rec {
substituteInPlace ocaml/Makefile.in --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
substituteInPlace v2v/test-harness/Makefile.am --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
substituteInPlace v2v/test-harness/Makefile.in --replace '$(DESTDIR)$(OCAMLLIB)' '$(out)/lib/ocaml'
# some scripts hardcore /usr/bin/env which is not available in the build env
patchShebangs .
'';
configureFlags = "--disable-appliance --disable-daemon";
patches = [ ./libguestfs-syms.patch ];
NIX_CFLAGS_COMPILE="-I${libxml2.dev}/include/libxml2/";
installFlags = "REALLY_INSTALL=yes";
enableParallelBuilding = true;
postInstall = ''
for bin in $out/bin/*; do