diff --git a/nix/README.md b/nix/README.md index 4a5469a730..ed4d621262 100644 --- a/nix/README.md +++ b/nix/README.md @@ -31,6 +31,14 @@ and run `sudo nixos-rebuild switch` afterward. It is _not_ recommended to add your user to `trusted-users`. This _can_ make enabling flake configurations simpler (like the Unison Nix cache here), but [it is equivalent to giving that user root access (without need for sudo)](https://nix.dev/manual/nix/2.23/command-ref/conf-file.html#conf-trusted-users). +## exploring the project + +``` bash +nix develop --command hoogle server --local +``` + +will run a [Hoogle](github.com/ndmitchell/hoogle#readme) server at http://127.0.0.1:8080 with all of the Unison code & dependencies available. + ## Building package components with nix ### Build the unison executable diff --git a/nix/haskell-nix-flake.nix b/nix/haskell-nix-flake.nix index 329627ef2e..c1f3fcb4b9 100644 --- a/nix/haskell-nix-flake.nix +++ b/nix/haskell-nix-flake.nix @@ -92,18 +92,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; }