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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
677 B
Nix
Raw Normal View History

{ stdenv, installShellFiles, qemu, removeReferencesTo }:
2019-03-28 03:20:20 +00:00
stdenv.mkDerivation rec {
2022-03-07 11:37:20 +00:00
pname = "qemu-utils";
inherit (qemu) version;
2019-03-28 03:20:20 +00:00
2020-06-29 16:13:55 +00:00
nativeBuildInputs = [ installShellFiles ];
2019-03-28 03:20:20 +00:00
buildInputs = [ qemu ];
disallowedRequisites = [ qemu ];
2019-03-28 03:20:20 +00:00
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"
${removeReferencesTo}/bin/remove-references-to -t ${qemu} $out/bin/*
2020-06-29 16:13:55 +00: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
'';
inherit (qemu) meta;
2019-03-28 03:20:20 +00:00
}