Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: 7a9ac91a43e1
Choose a base ref
...
head repository: NixOS/nix
compare: 3cd15c5b1f5a
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Oct 22, 2018

  1. Per-output reference and closure size checks

    In structured-attributes derivations, you can now specify per-output
    checks such as:
    
      outputChecks."out" = {
        # The closure of 'out' must not be larger than 256 MiB.
        maxClosureSize = 256 * 1024 * 1024;
    
        # It must not refer to C compiler or to the 'dev' output.
        disallowedRequisites = [ stdenv.cc "dev" ];
      };
    
      outputChecks."dev" = {
        # The 'dev' output must not be larger than 128 KiB.
        maxSize = 128 * 1024;
      };
    
    Also fixed a bug in allowedRequisites that caused it to ignore
    self-references.
    edolstra committed Oct 22, 2018
    1 Configuration menu
    Copy the full SHA
    3cd15c5 View commit details
    Browse the repository at this point in the history