diff --git a/pkgs/tools/virtualization/guestfs-tools/default.nix b/pkgs/tools/virtualization/guestfs-tools/default.nix index 55c695d8dfd7..d564cae9afd5 100644 --- a/pkgs/tools/virtualization/guestfs-tools/default.nix +++ b/pkgs/tools/virtualization/guestfs-tools/default.nix @@ -66,16 +66,16 @@ stdenv.mkDerivation rec { xz ]; + preConfigure = '' + patchShebangs ocaml-dep.sh.in ocaml-link.sh.in run.in + ''; + makeFlags = [ "LIBGUESTFS_PATH=${libguestfs-with-appliance}/lib/guestfs" ]; enableParallelBuilding = true; - preBuild = '' - patchShebangs . - ''; - postInstall = '' wrapProgram $out/bin/virt-win-reg \ --prefix PERL5LIB : ${with perlPackages; makeFullPerlPath [ hivex libintl-perl libguestfs-with-appliance ]}