Closed
Description
Getting this with standard flake setup
error: anonymous function at /nix/store/bfllm0im5z34n4v84zvip0kwy6vwl2yz-source/pkgs/development/haskell-modules/hoogle.nix:5:1 called with unexpected argument 'packages'
at /nix/store/9am4s5l42vk3h1b6lf0mgz29y8p8xwpa-source/lib/default.nix:132:8:
131| args' = (builtins.intersectAttrs (builtins.functionArgs f') scope) // args;
132| in f' args';
| ^
133|
… while evaluating 'weakCallPackage'
at /nix/store/9am4s5l42vk3h1b6lf0mgz29y8p8xwpa-source/lib/default.nix:129:31:
128| #
129| weakCallPackage = scope: f: args:
| ^
130| let f' = if lib.isFunction f then f else import f;
… from call site
at /nix/store/9am4s5l42vk3h1b6lf0mgz29y8p8xwpa-source/builder/default.nix:53:5:
52| }:
53| haskellLib.weakCallPackage pkgs nixpkgsHoogle {
| ^
54| # For musl we can use haddock from the buildGHC
… while evaluating anonymous lambda
at /nix/store/9am4s5l42vk3h1b6lf0mgz29y8p8xwpa-source/builder/default.nix:48:6:
47| nixpkgsHoogle = import (pkgs.path + /pkgs/development/haskell-modules/hoogle.nix);
48| in { packages ? [], hoogle ? pkgs.buildPackages.haskell-nix.tool "ghc8107" "hoogle" {
| ^
49| version = "5.0.18.2";
… from call site
at /nix/store/9am4s5l42vk3h1b6lf0mgz29y8p8xwpa-source/builder/shell-for.nix:124:6:
123| };
124| in hoogleLocal ({
| ^
125| packages = map docPackage (haskellLib.flatLibDepends component);
… while evaluating 'optionalString'
at /nix/store/bfllm0im5z34n4v84zvip0kwy6vwl2yz-source/lib/strings.nix:202:5:
201| # String to return if condition is true
202| string: if cond then string else "";
| ^
203|
… from call site
at /nix/store/9am4s5l42vk3h1b6lf0mgz29y8p8xwpa-source/builder/shell-for.nix:111:19:
110| componentName = name;
111| postInstall = lib.optionalString withHoogle' ''
| ^
112| ln -s ${hoogleIndex}/bin/hoogle $out/bin
… while evaluating the attribute 'buildCommand' of the derivation 'ghc-shell-for-packages-ghc-8.10.7-env'
at /nix/store/bfllm0im5z34n4v84zvip0kwy6vwl2yz-source/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let
… while evaluating the attribute 'NIX_GHC_LIBDIR' of the derivation 'ghc-shell-for-packages'
at /nix/store/bfllm0im5z34n4v84zvip0kwy6vwl2yz-source/pkgs/stdenv/generic/make-derivation.nix:205:7:
204| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
205| name =
| ^
206| let