query
On this page

traceDrvLicenses

pkgs.traceDrvLicenses

Docs pulled from | This Revision | 1 day ago


Use the trace output to report all processed derivations with their license name.


Noogle detected

Implementation

The following is the current implementation of this function.

traceDrvLicenses =
    stdenv:
    stdenv.override (old: {
      mkDerivationFromStdenv = overrideMkDerivationResult (
        pkg:
        let
          printDrvPath =
            val:
            let
              drvPath = builtins.unsafeDiscardStringContext pkg.drvPath;
              license = pkg.meta.license or null;
            in
            builtins.trace "@:drv:${toString drvPath}:${builtins.toString license}:@" val;
        in
        pkg
        // {
          outPath = printDrvPath pkg.outPath;
          drvPath = printDrvPath pkg.drvPath;
        }
      );
    });