2020-06-29 18:13:55 +02:00
|
|
|
{ stdenv, installShellFiles, qemu }:
|
2019-03-28 04:20:20 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qemu-utils-${version}";
|
|
|
|
version = qemu.version;
|
|
|
|
|
2020-06-29 18:13:55 +02:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2019-03-28 04:20:20 +01: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 18:13:55 +02:00
|
|
|
|
|
|
|
installManPage ${qemu}/share/man/man1/qemu-img.1.gz
|
|
|
|
installManPage ${qemu}/share/man/man8/qemu-nbd.8.gz
|
2019-03-28 04:20:20 +01:00
|
|
|
'';
|
2020-06-11 17:41:52 +02:00
|
|
|
|
|
|
|
inherit (qemu) meta;
|
2019-03-28 04:20:20 +01:00
|
|
|
}
|