21 libguestfs-with-appliance,
24 withWindowsGuestSupport ? true,
25 pkgsCross, # for rsrvany
29 stdenv.mkDerivation (finalAttrs: {
34 url = "https://download.libguestfs.org/virt-v2v/${lib.versions.majorMinor finalAttrs.version}-stable/virt-v2v-${finalAttrs.version}.tar.gz";
35 sha256 = "sha256-W7t/n1QO9UebyH85abtnSY5i7kH/6h8JIAlFQoD1vkU=";
39 substituteInPlace common/mlv2v/uefi.ml \
40 --replace-fail '/usr/share/OVMF/OVMF_CODE.fd' "${OVMF.firmware}" \
41 --replace-fail '/usr/share/OVMF/OVMF_VARS.fd' "${OVMF.variables}"
53 libguestfs-with-appliance
59 ++ (with ocamlPackages; [
72 ++ (with ocamlPackages; [
79 for bin in $out/bin/*; do
81 --prefix PATH : "$out/bin:${
89 + lib.optionalString withWindowsGuestSupport ''
90 ln -s "${virtio-win}" $out/share/virtio-win
91 ln -s "${pkgsCross.mingwW64.rhsrvany}/bin/" $out/share/virt-tools
94 PKG_CONFIG_BASH_COMPLETION_COMPLETIONSDIR = "${placeholder "out"}/share/bash-completion/completions";
96 passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
99 homepage = "https://github.com/libguestfs/virt-v2v";
100 description = "Convert guests from foreign hypervisors to run on KVM";
101 license = lib.licenses.gpl2Only;
102 maintainers = with lib.maintainers; [ lukts30 ];
103 platforms = lib.platforms.linux;
104 mainProgram = "virt-v2v";