qemu-utils: remove qemu dependency

qemu-utils was pulling qemu which is a 900MB dependency. By removing
reference to it (unneeded), we're saving space on our deployments.
qemu-utils is a dependency of cloud-utils
This commit is contained in:
Arthur Gautier 2022-06-25 19:30:07 -07:00 committed by Alyssa Ross
parent 195c7143d9
commit fef6723f9b

View file

@ -1,4 +1,4 @@
{ stdenv, installShellFiles, qemu }:
{ stdenv, installShellFiles, qemu, removeReferencesTo }:
stdenv.mkDerivation rec {
pname = "qemu-utils";
@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
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/*
installManPage ${qemu}/share/man/man1/qemu-img.1.gz
installManPage ${qemu}/share/man/man8/qemu-nbd.8.gz