3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/haskell-modules
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
..
patches haskell-dbus: drop semicolons.patch; this change appears to have been included upstream 2017-04-21 16:25:52 +02:00
configuration-common.nix purescript: remove overrides 2017-04-25 16:08:43 +02:00
configuration-ghc-6.12.x.nix haskell-binary: update 0.8.x branch to latest version 2017-04-04 16:29:12 +02:00
configuration-ghc-7.0.x.nix haskell-hsdns: fix build with GHC 7.0.x and 7.2.x 2017-04-21 16:25:53 +02:00
configuration-ghc-7.2.x.nix haskell-hsdns: fix build with GHC 7.0.x and 7.2.x 2017-04-21 16:25:53 +02:00
configuration-ghc-7.4.x.nix haskell-binary: update 0.8.x branch to latest version 2017-04-04 16:29:12 +02:00
configuration-ghc-7.6.x.nix haskell-language-nix: fix build with GHC 7.6.3 2017-04-04 16:29:12 +02:00
configuration-ghc-7.8.x.nix haskell-void: fix build with GHC 7.8.x 2017-03-29 20:30:29 +02:00
configuration-ghc-7.10.x.nix haskell: ghcjs packages: Remove ghcjs-prim 2017-04-07 21:41:01 +02:00
configuration-ghc-8.0.x.nix haskell: ghcjs packages: Remove ghcjs-prim 2017-04-07 21:41:01 +02:00
configuration-ghc-head.nix haskell-old-time: fix build with GHC HEAD 2017-04-21 16:25:54 +02:00
configuration-ghcjs.nix haskell: ghcjs packages: Break dependency cycle less invasive 2017-04-07 19:02:52 +02:00
configuration-hackage2nix.yaml hackage2nix: update list of broken packages 2017-04-25 16:08:37 +02:00
configuration-halvm-2.4.0.nix Init HaLVM at 2.4.0 2017-03-10 19:31:12 -06:00
configuration-nix.nix haskell-gtksourceview: clean up overrides for versions 2 and 3 of the package 2017-04-21 16:25:53 +02:00
default.nix haskell-packages: factor package set construction in new file 2017-04-21 16:25:53 +02:00
generic-builder.nix Merge pull request #24922 from phunehehe/haskell-shell-hook 2017-04-15 12:34:41 +02:00
generic-stack-builder.nix haskell.lib.buildStackProject: fix #22386 2017-02-03 10:07:10 +01:00
hackage-packages.nix hackage-packages.nix: automatic Haskell package set update 2017-04-25 16:08:38 +02:00
hoogle-local-wrapper.sh Make hoogle-local compatible wih hoogle >= 5.0.4 2016-09-20 12:04:46 +02:00
hoogle.nix ghcWithHoogle: fix for ghcjs 2017-02-14 22:50:29 +01:00
lib.nix haskell-packages: factor package set construction in new file 2017-04-21 16:25:53 +02:00
make-package-set.nix haskell: preserve overrideScope on override 2017-04-25 16:08:43 +02:00
with-packages-wrapper.nix Init HaLVM at 2.4.0 2017-03-10 19:31:12 -06:00