Skip to content

Commit

Permalink
Enable Hoogle for local packages
Browse files Browse the repository at this point in the history
It is not triggering a(nother) rebuild of GHC.
  • Loading branch information
sellout committed Dec 10, 2024
1 parent e4e8f0a commit a9dc70a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions nix/haskell-nix-flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,8 @@ in
defaultPackage = haskell-nix-flake.packages."unison-cli-main:exe:unison";

devShells = let
mkDevShell = pkg:
shellFor {
packages = _hpkgs: [pkg];
## Enabling Hoogle causes us to rebuild GHC.
withHoogle = false;
};
mkDevShell = pkg: shellFor {packages = _hpkgs: [pkg];};
in
{
local = shellFor {
packages = _hpkgs: builtins.attrValues localPackages;
withHoogle = false;
};
}
{local = shellFor {packages = _hpkgs: builtins.attrValues localPackages;};}
// pkgs.lib.mapAttrs (_name: mkDevShell) localPackages;
}

0 comments on commit a9dc70a

Please sign in to comment.