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/nixpkgs
base: 95ece9efe510
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: e1dee4efcbff
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Apr 7, 2018

  1. lib: make extensible

    This allows the lib fixed point to be extended with
    
      myLib = lib.extend (self: super: {
        foo = "foo";
      })
    
    With this it's possible to have the new modified lib attrset available to all
    modules when using evalModules
    
      myLib.evalModules {
        modules = [ ({ lib, ... }: {
          options.bar = lib.mkOption {
    	default = lib.foo;
          };
        }) ];
      }
    
      => { config = { bar = "foo"; ... }; options = ...; }
    infinisil authored and Ericson2314 committed Apr 7, 2018
    Copy the full SHA
    e1dee4e View commit details
    Browse the repository at this point in the history