mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
17 lines
358 B
Nix
17 lines
358 B
Nix
{ stdenv, qemu }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "qemu-utils-${version}";
|
|
version = qemu.version;
|
|
|
|
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"
|
|
'';
|
|
}
|