Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions nix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 2 additions & 12 deletions nix/haskell-nix-flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Loading