Skip to content

Commit

Permalink
add hoogle support
Browse files Browse the repository at this point in the history
  • Loading branch information
mt-caret committed Mar 7, 2021
1 parent 0bcb538 commit 1eece3f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions NixSupport/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{ compiler ? "ghc8103", ihp, haskellDeps ? (p: []), otherDeps ? (p: []), projectPath ? ./. }:
{ compiler ? "ghc8103", ihp, haskellDeps ? (p: []), otherDeps ? (p: []), projectPath ? ./., withHoogle ? false }:

let
pkgs = import "${toString projectPath}/Config/nix/nixpkgs-config.nix" { ihp = ihp; };
ghc = pkgs.haskell.packages.${compiler};
allHaskellPackages = ghc.ghcWithPackages (p: builtins.concatLists [ [p.haskell-language-server] (haskellDeps p) ] );
allHaskellPackages =
(if withHoogle
then ghc.ghcWithHoogle
else ghc.ghcWithPackages)
(p: builtins.concatLists [ [p.haskell-language-server] (haskellDeps p) ] );
allNativePackages = builtins.concatLists [ (otherDeps pkgs) [pkgs.postgresql] (if pkgs.stdenv.isDarwin then [] else []) ];
in
pkgs.stdenv.mkDerivation {
Expand Down

0 comments on commit 1eece3f

Please sign in to comment.