2020-06-29 17:13:55 +01:00
|
|
|
{ stdenv, installShellFiles, qemu }:
|
2019-03-28 03:20:20 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qemu-utils-${version}";
|
|
|
|
version = qemu.version;
|
|
|
|
|
2020-06-29 17:13:55 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2019-03-28 03:20:20 +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-06-29 17:13:55 +01: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 16:41:52 +01:00
|
|
|
|
|
|
|
inherit (qemu) meta;
|
2019-03-28 03:20:20 +00:00
|
|
|
}
|