nixpkgs/lib
John Ericson b9dce11712 lib: Make overrideScope' which takes arguments in the conventional order
The `overrideScope` bound by `makeScope` (via special `callPackage`)
took an override in the form `super: self { … }`. But this is
dangerously close to the `self: super { … }` form used by *everything*
else, even other definitions of `overrideScope`! Since that
implementation did not even share any code either until I changed it
recently in 3cf43547f4, this inconsistency
is almost certainly an oversight and not intentional.

Unfortunately, just as the inconstency is hard to debug if one just
assumes the conventional order, any sudden fix would break existing
overrides in the same hard-to-debug way. So instead of changing the
definition a new `overrideScope'` with the conventional order is added,
and old `overrideScope` deprecated with a warning saying to use
`overrideScope'` instead. That will hopefully get people to stop using
`overrideScope`, freeing our hand to change or remove it in the future.
2018-09-24 17:50:11 -04:00
..
systems androidndk: Add Darwin support 2018-09-17 22:34:37 -04:00
tests hurd: cleanup unmaintained target 2018-08-28 22:18:02 +01:00
attrsets.nix Merge pull request #45038 from symphorien/optopt 2018-08-30 20:08:45 +02:00
composable-derivation.nix [bot] treewide: remove unused 'inherit' in let blocks 2018-07-20 19:38:19 +00:00
customisation.nix lib: Make overrideScope' which takes arguments in the conventional order 2018-09-24 17:50:11 -04:00
debug.nix lib.debug: fix traceValSeqFn 2018-07-15 09:36:08 +09:00
default.nix as requested: 2018-08-21 20:11:28 +02:00
deprecated.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
fetchers.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
filesystem.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
fixed-points.nix Revert "Merge branch 'improved-make-overridable' of git://github.com/ElvishJerricco/nixpkgs" 2017-09-29 09:11:26 -04:00
generators.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
kernel.nix linux: translate config to structured config 2018-06-30 16:01:41 +03:00
licenses.nix xfig: 3.2.5b -> 3.2.7a 2018-08-20 00:43:11 +02:00
lists.nix [bot]: remove unreferenced code 2018-07-20 18:48:37 +00:00
meta.nix treewide: remove lib.meta.enableIfAvailable 2018-05-09 16:21:22 -05:00
minver.nix Nix minimal version: 1.11 -> 2.0 2018-08-30 08:09:54 -04:00
modules.nix module system: rework module merging 2018-08-27 17:11:58 +02:00
options.nix lib/options: teach showOptions about funny option names 2018-03-05 09:58:06 -05:00
sources.nix callCabal2nix: Fix calling with a path in the store. 2018-01-11 10:17:56 -05:00
strings-with-deps.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
strings.nix function rewritten by @Infinisil 2018-08-21 20:11:28 +02:00
trivial.nix lib/trivial: move zipIntBits to its own file 2018-07-26 20:36:45 +02:00
types.nix [bot] treewide: remove unused 'inherit' in let blocks 2018-07-20 19:38:19 +00:00
versions.nix lib: add versions library 2018-03-04 06:28:34 -08:00
zip-int-bits.nix lib/trivial: move zipIntBits to its own file 2018-07-26 20:36:45 +02:00