Remove Nix configuration

pull/357/head
Taylor Fausak 2021-11-06 21:31:55 +00:00 committed by GitHub
parent 694ce973f4
commit 51ca8fd5d7
2 changed files with 0 additions and 36 deletions

View File

@ -68,12 +68,6 @@ log the size of the input, but _not_ the full input/output of requests.)
you may want to clone the repo and try again (there are several stack.yamls
included).
- via `nix`:
~~~.sh
nix build
nix-env -i ./result
~~~
- via `cabal`
Due to constant changes to the cabal UI, I have given up on making sure
@ -103,18 +97,6 @@ log the size of the input, but _not_ the full input/output of requests.)
# Development tips
## Run a hoogle server
To host a local Hoogle server with all of Brittany's dependencies run:
```sh
echo brittany.cabal |
$(nix-build '<nixpkgs>' --no-link -A entr)/bin/entr -r -- \
sh -c "nix-shell --run 'hoogle server --local'"
```
This will watch `brittany.cabal` for changes and restart the server when new dependencies are added there.
# Editor Integration
#### Sublime text

View File

@ -1,18 +0,0 @@
{ nixpkgsSrc ? builtins.fetchTarball {
url =
"https://github.com/nixos/nixpkgs/archive/069f183f16c3ea5d4b6e7625433b92eba77534f7.tar.gz"; # nixos-unstable
sha256 = "1by9rqvr2k6iz2yipf89yaj254yicpwq384ijgyy8p71lfxbbww2";
}, pkgs ? import nixpkgsSrc { }, compiler ? null, forShell ? pkgs.lib.inNixShell
}:
let
haskellPackages = if compiler == null then
pkgs.haskellPackages
else
pkgs.haskell.packages.${compiler};
in haskellPackages.developPackage {
name = "brittany";
root = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
returnShellEnv = forShell;
}