nixpkgs/pkgs/lib
Marc Weber b56ed35851 replacing applyAndFun by lib.defaultOverridableDelayableArgs
applyAndFun has a bug resulting in the same arg beeing added more than
once when using a concatenating merge function for the attr set.

I've tried giving the function a name "overridableDelayableArgs" which
resembles its usage much more.

important refactoring:
  applyAndFun had .fun and .funMerge only when passing the merge
  function lib.mergeOrApply

  composableDerivation {
    initial = {
      ...
    };
  }

to

  overridableDelayableArgs has always .replace and .merge
  composableDerivation {} {
    ...
  }

svn path=/nixpkgs/trunk/; revision=14428
2009-03-06 23:21:28 +00:00
..
attrsets.nix moved catAttrs, attrVals into attrsets.nix, adding attrValues 2009-03-06 23:21:14 +00:00
composable-derivation.nix replacing applyAndFun by lib.defaultOverridableDelayableArgs 2009-03-06 23:21:28 +00:00
debug.nix * Split lib/default.nix into several files, as it had become a big 2009-02-09 16:51:03 +00:00
default.nix * Doh. 2009-02-09 17:03:18 +00:00
lists.nix * Split lib/default.nix into several files, as it had become a big 2009-02-09 16:51:03 +00:00
misc-tests.nix added simple lib test case for overridableDelayableArgs 2009-03-06 23:21:17 +00:00
misc.nix moved catAttrs, attrVals into attrsets.nix, adding attrValues 2009-03-06 23:21:14 +00:00
options.nix * Refactor mkIf to extract the concept of properties. 2009-02-28 18:21:25 +00:00
sources.nix * Split lib/default.nix into several files, as it had become a big 2009-02-09 16:51:03 +00:00
strings-with-deps.nix
strings.nix add eqStrings back.. 2009-02-24 16:19:08 +00:00
tests.nix added simple lib test case for overridableDelayableArgs 2009-03-06 23:21:17 +00:00
trivial.nix * Split lib/default.nix into several files, as it had become a big 2009-02-09 16:51:03 +00:00