make-squashfs: drop references to build closure

This commit is contained in:
Michael Hoang
2025-07-16 13:20:42 +10:00
parent 6c2ccf3f6e
commit f03674d868

View File

@@ -27,6 +27,10 @@ stdenv.mkDerivation {
name = "${fileName}${lib.optionalString (!hydraBuildProduct) ".img"}";
__structuredAttrs = true;
# the image will be self-contained so we can drop references
# to the closure that was used to build it
unsafeDiscardReferences.out = true;
nativeBuildInputs = [ squashfsTools ];
buildCommand =