mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
23 lines
559 B
Nix
23 lines
559 B
Nix
{ stdenv, installShellFiles, qemu }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "qemu-utils-${version}";
|
|
version = qemu.version;
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
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"
|
|
|
|
installManPage ${qemu}/share/man/man1/qemu-img.1.gz
|
|
installManPage ${qemu}/share/man/man8/qemu-nbd.8.gz
|
|
'';
|
|
|
|
inherit (qemu) meta;
|
|
}
|