on iko/ghcjs-patch-master help sign in
Only include hoogle once in shell (#942)

Currently hoogle gets symlinked into ghcEnv and that is included in the `nativeBuildInputs` of the shell. In addition it the same `hoogle` is included in `buildInputs` directly. This is not a big problem for nix-shell, but it prevents the using the following to install the shell in a docker container: ``` nix-env -f shell.nix -iA buildInputs nix-env -f shell.nix -iA nativeBuildInputs ``` Gives errors like: ``` error: packages '/nix/store/r3zx73r5y52mqz8p54pxr68pjfc5l0l8-hoogle-local-0.1/bin/hoogle' and '/nix/store/crbhp4wr84fihg9akqh6r6an6s7qb77s-ghc-shell-for-fp-course-ghc-8.8.4-env/bin/hoogle' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority) ```

commit3689e4fa3d5ed2353614b78f15e791a6d4b16e70 authorHamish Mackenzie <Hamish.Mackenzie@iohk.io> dateWed 25 Nov 2020, 18:42 (6 years ago) parent81785b7
1 file changed−1
builder/shell-for.nix−1
builder/shell-for.nix−1
@@ -124,7 +124,6 @@ in
124124
125125 buildInputs = systemInputs
126126 ++ mkDrvArgs.buildInputs or []
127− ++ lib.optional withHoogle' hoogleIndex
128127 ++ lib.concatMap (s: s.buildInputs) otherShells;
129128 nativeBuildInputs = [ ghcEnv ]
130129 ++ nativeBuildInputs