nixpkgs-suyu/pkgs/applications/virtualization/qemu/utils.nix

23 lines
559 B
Nix
Raw Normal View History

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
'';
inherit (qemu) meta;
2019-03-28 04:20:20 +01:00
}