+27
-137
lib/customisation.nix
+27
-137
lib/customisation.nix
······-nix-repl> obj = obj.extend (self: super: { foo = super.foo + " + "; bar = "bar"; foobar = self.foo + self.bar; })-nix-repl> obj = obj.overridePackage (output: self: super: { args = super.args // {b = self.val.a;}; })-nix-repl> obj = obj.overridePackage (output: self: super: { val = super.val // {a = self.args.a + 10;}; })···-in callPackageCommon (builtins.functionArgs f) autoArgs (output: args: _: f args output ) args;
······+overrideWith = newArgs: origArgs // (if builtins.isFunction newArgs then newArgs origArgs else newArgs);···
+4
-30
lib/fixed-points.nix
+4
-30
lib/fixed-points.nix
···-# nix-repl> obj = makeExtensibleWithInterface interface (output: self: { args = {a = 1; b = 2;}; val = foo self.args; })-# nix-repl> obj = obj.extend (output: self: super: { args = super.args // { b = output.d; }; })
+6
-1
pkgs/development/beam-modules/default.nix
+6
-1
pkgs/development/beam-modules/default.nix
···
+11
-9
pkgs/development/haskell-modules/default.nix
+11
-9
pkgs/development/haskell-modules/default.nix
······
······
+32
-2
pkgs/development/haskell-modules/make-package-set.nix
+32
-2
pkgs/development/haskell-modules/make-package-set.nix
······
······
+10
-1
pkgs/development/idris-modules/default.nix
+10
-1
pkgs/development/idris-modules/default.nix
···
+3
-1
pkgs/top-level/all-packages.nix
+3
-1
pkgs/top-level/all-packages.nix
+20
-21
pkgs/top-level/haskell-packages.nix
+20
-21
pkgs/top-level/haskell-packages.nix
·········# Support for this compiler is broken, because it can't deal with directory-based package databases.
·········# Support for this compiler is broken, because it can't deal with directory-based package databases.
-4
pkgs/top-level/splice.nix
-4
pkgs/top-level/splice.nix
···