2022-06-26 02:30:07 +00:00
|
|
|
{ stdenv, installShellFiles, qemu, removeReferencesTo }:
|
2019-03-28 03:20:20 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-07 11:37:20 +00:00
|
|
|
pname = "qemu-utils";
|
|
|
|
inherit (qemu) version;
|
2019-03-28 03:20:20 +00:00
|
|
|
|
2020-06-29 16:13:55 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2019-03-28 03:20:20 +00:00
|
|
|
buildInputs = [ qemu ];
|
2022-07-05 16:22:24 +00:00
|
|
|
disallowedRequisites = [ qemu ];
|
2019-03-28 03:20:20 +00:00
|
|
|
unpackPhase = "true";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
cp "${qemu}/bin/qemu-img" "$out/bin/qemu-img"
|
|
|
|
cp "${qemu}/bin/qemu-io" "$out/bin/qemu-io"
|
|
|
|
cp "${qemu}/bin/qemu-nbd" "$out/bin/qemu-nbd"
|
2022-06-26 02:30:07 +00:00
|
|
|
${removeReferencesTo}/bin/remove-references-to -t ${qemu} $out/bin/*
|
2020-06-29 16:13:55 +00:00
|
|
|
|
|
|
|
installManPage ${qemu}/share/man/man1/qemu-img.1.gz
|
|
|
|
installManPage ${qemu}/share/man/man8/qemu-nbd.8.gz
|
2019-03-28 03:20:20 +00:00
|
|
|
'';
|
2020-06-11 15:41:52 +00:00
|
|
|
|
|
|
|
inherit (qemu) meta;
|
2019-03-28 03:20:20 +00:00
|
|
|
}
|