Remove Nix configuration
parent
694ce973f4
commit
51ca8fd5d7
18
README.md
18
README.md
|
@ -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
|
you may want to clone the repo and try again (there are several stack.yamls
|
||||||
included).
|
included).
|
||||||
|
|
||||||
- via `nix`:
|
|
||||||
~~~.sh
|
|
||||||
nix build
|
|
||||||
nix-env -i ./result
|
|
||||||
~~~
|
|
||||||
|
|
||||||
- via `cabal`
|
- via `cabal`
|
||||||
|
|
||||||
Due to constant changes to the cabal UI, I have given up on making sure
|
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
|
# 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
|
# Editor Integration
|
||||||
|
|
||||||
#### Sublime text
|
#### Sublime text
|
||||||
|
|
18
default.nix
18
default.nix
|
@ -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;
|
|
||||||
}
|
|
Loading…
Reference in New Issue