forked from mirrors/nixpkgs
731e0fa742
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. |
||
---|---|---|
.. | ||
patches | ||
configuration-common.nix | ||
configuration-ghc-6.12.x.nix | ||
configuration-ghc-7.0.x.nix | ||
configuration-ghc-7.2.x.nix | ||
configuration-ghc-7.4.x.nix | ||
configuration-ghc-7.6.x.nix | ||
configuration-ghc-7.8.x.nix | ||
configuration-ghc-7.10.x.nix | ||
configuration-ghc-8.0.x.nix | ||
configuration-ghc-head.nix | ||
configuration-ghcjs.nix | ||
configuration-hackage2nix.yaml | ||
configuration-halvm-2.4.0.nix | ||
configuration-nix.nix | ||
default.nix | ||
generic-builder.nix | ||
generic-stack-builder.nix | ||
hackage-packages.nix | ||
hoogle-local-wrapper.sh | ||
hoogle.nix | ||
lib.nix | ||
make-package-set.nix | ||
with-packages-wrapper.nix |