16 libguestfs-with-appliance,
32 stdenv.mkDerivation (finalAttrs: {
33 pname = "guestfs-tools";
37 url = "https://download.libguestfs.org/guestfs-tools/${lib.versions.majorMinor finalAttrs.version}-stable/guestfs-tools-${finalAttrs.version}.tar.gz";
38 hash = "sha256-02khDS2NLG1QOSqswtDoqBX2Mg6sE/OiUoP9JFs4vTU=";
52 ++ (with perlPackages; [
59 ++ (with ocamlPackages; [
70 libguestfs-with-appliance
81 # If it uses the executable name, then there's nothing we can do
82 # when wrapping to stop it looking in
83 # $out/etc/.virt-builder-wrapped, which won't exist.
84 substituteInPlace common/mlstdutils/std_utils.ml \
85 --replace Sys.executable_name '(Array.get Sys.argv 0)'
89 patchShebangs ocaml-dep.sh.in ocaml-link.sh.in run.in
93 "LIBGUESTFS_PATH=${libguestfs-with-appliance}/lib/guestfs"
97 "BASH_COMPLETIONS_DIR=${placeholder "out"}/share/bash-completion/completions"
100 enableParallelBuilding = true;
103 wrapProgram $out/bin/virt-builder \
104 --argv0 virt-builder \
111 --suffix VIRT_BUILDER_DIRS : /etc:$out/etc
112 wrapProgram $out/bin/virt-win-reg \
113 --prefix PERL5LIB : ${
118 libguestfs-with-appliance
123 passthru.updateScript = gitUpdater {
124 url = "https://github.com/libguestfs/guestfs-tools";
130 description = "Extra tools for accessing and modifying virtual machine disk images";
131 license = with lib.licenses; [
135 homepage = "https://libguestfs.org/";
136 changelog = "https://www.libguestfs.org/guestfs-tools-release-notes-${lib.versions.majorMinor finalAttrs.version}.1.html";
138 platforms = lib.platforms.linux;
139 hydraPlatforms = [ ];