2020-08-20 17:08:02 +00:00
|
|
|
{ stdenv, installShellFiles, qemu }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "qemu-utils";
|
|
|
|
inherit (qemu) version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ qemu ];
|
|
|
|
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"
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
installManPage ${qemu}/share/man/man1/qemu-img.1.gz
|
|
|
|
installManPage ${qemu}/share/man/man8/qemu-nbd.8.gz
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
inherit (qemu) meta;
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|