Merge pull request #95203 from alyssais/qemu

qemu-utils: install man pages
This commit is contained in:
worldofpeace 2020-08-11 17:10:41 -04:00 committed by GitHub
commit bf5fe68ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,9 +1,10 @@
{ stdenv, qemu }: { stdenv, installShellFiles, qemu }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "qemu-utils-${version}"; name = "qemu-utils-${version}";
version = qemu.version; version = qemu.version;
nativeBuildInputs = [ installShellFiles ];
buildInputs = [ qemu ]; buildInputs = [ qemu ];
unpackPhase = "true"; unpackPhase = "true";
@ -12,6 +13,9 @@ stdenv.mkDerivation rec {
cp "${qemu}/bin/qemu-img" "$out/bin/qemu-img" cp "${qemu}/bin/qemu-img" "$out/bin/qemu-img"
cp "${qemu}/bin/qemu-io" "$out/bin/qemu-io" cp "${qemu}/bin/qemu-io" "$out/bin/qemu-io"
cp "${qemu}/bin/qemu-nbd" "$out/bin/qemu-nbd" 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; inherit (qemu) meta;