Trace addition to nix-support/private

This commit is contained in:
Aleix Boné 2025-10-06 16:51:36 +02:00
parent 30e75da14c
commit 660604a9f5
No known key found for this signature in database

View File

@ -23,12 +23,13 @@ let
if args ? meta && args.meta ? license then builtins.any checkLicense licenses else false;
in
if hasUnfreeLicense then
builtins.traceVerbose "adding nix-support/private to ${originalDrv.name or originalDrv.pname}" (
originalDrv.overrideAttrs (old: {
postInstall = (old.postInstall or "") + ''
mkdir -p $out/nix-support
touch $out/nix-support/private
'';
})
}))
else
originalDrv;
};