3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development
Benno Fünfstück 731e0fa742 haskell: preserve overrideScope on override
We want code such as `(pkg.override {}).overrideScope (self: super: {})` to
work. This didn't work before, since `override` will call the original package
again, and the attribute `overideScope`, which `callPackageWithScope` added,
wasn't added again. The fix for this is to modify the package function itself
to include the `callPackageWithScope` attribute, so it'll be re-added whenever
the function is overriden for with arguments.

There is a small problem here though: since callPackage uses some magic
(`builtins.functionArgs`) to determine the auto-arguments of a function, we
can't just write `callPackageWith scope drvScope`, since
`builtins.functionArgs drvScope` will be `{}`. To fix this, we implement our own
`callPackageWith`.

Fixes https://github.com/NixOS/nixpkgs/issues/7953.
Closes https://github.com/NixOS/nixpkgs/pull/9336.
2017-04-25 16:08:43 +02:00
..
arduino
beam-modules treewide: remove unused buildEnv parameters 2017-04-16 10:29:49 +02:00
bower-modules/generic
compilers halvm: set proper meta.platforms 2017-04-25 16:08:43 +02:00
coq-modules coq.QuickChick: Update to latest version that works with Coq 8.6 2017-04-23 21:53:21 -07:00
dotnet-modules/patches
eclipse/ecj
em-modules/generic
go-modules
guile-modules treewide: remove unused buildEnv parameters 2017-04-16 10:29:49 +02:00
haskell-modules haskell: preserve overrideScope on override 2017-04-25 16:08:43 +02:00
idris-modules
interpreters Merge remote-tracking branch 'upstream/master' into HEAD 2017-04-23 11:26:47 +02:00
java-modules treewide: use boolToString function 2017-04-11 18:18:53 +02:00
libraries qt5: fix to work on LLVM 4 2017-04-25 09:37:36 -04:00
lisp-modules compile uiop/version with uiop, seems needed for monolithic bundles in some cases 2017-04-16 19:25:48 +02:00
lua-modules
misc
mobile
node-packages Fix node2nix installation instructions in README 2017-04-23 13:47:59 +01:00
ocaml-modules ocamlPackages.menhir: 20170101 -> 20170418 2017-04-20 20:16:35 +00:00
perl-modules
pharo
pure-modules purePackages.octave: Use octaveHg 2017-04-09 21:54:39 +10:00
python-modules perl*, statsmodels: fix evaluation problems 2017-04-24 17:36:28 +02:00
qtcreator
r-modules R: update list of broken packages (and some cosmetic) 2017-04-24 15:39:54 +02:00
ruby-modules bundix: 2.0.8 -> 2.1.0 (#25129) 2017-04-23 13:13:50 +01:00
tools yarn: 0.22.0 -> 0.23.2 (#25189) 2017-04-25 11:05:35 +01:00
web nodejs: 7.7.3 -> 7.9.0 2017-04-18 22:43:50 +02:00