guestfs-tools: add virt-builder runtime deps

These are required to do anything useful with the program.  It tries
to run virt-resize from PATH, so $out/bin needs to be included as
well.
This commit is contained in:
Alyssa Ross 2022-12-01 08:38:44 +00:00
parent ad3c91ce35
commit 74a1545090
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -5,8 +5,10 @@
, bison
, cdrkit
, cpio
, curl
, flex
, getopt
, gnupg
, hivex
, jansson
, libguestfs-with-appliance
@ -95,6 +97,7 @@ stdenv.mkDerivation rec {
postInstall = ''
wrapProgram $out/bin/virt-builder \
--argv0 virt-builder \
--prefix PATH : ${lib.makeBinPath [ curl gnupg ]}:$out/bin \
--suffix VIRT_BUILDER_DIRS : /etc:$out/etc
wrapProgram $out/bin/virt-win-reg \
--prefix PERL5LIB : ${with perlPackages; makeFullPerlPath [ hivex libintl-perl libguestfs-with-appliance ]}