Add build instructions for nix

pull/213/head
Ben Sima 2019-01-26 10:55:29 -08:00
parent 6c187da8f8
commit f68fbb3118
4 changed files with 25 additions and 0 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ local/
cabal.sandbox.config
cabal.project.local
.ghc.environment.*
result

View File

@ -94,6 +94,12 @@ log the size of the input, but _not_ the full input/output of requests.)
aura -A brittany
~~~~
- via `nix`:
~~~.sh
nix build # or 'nix-build'
nix-env -i ./result
~~~
# Editor Integration
#### Sublime text

13
default.nix Normal file
View File

@ -0,0 +1,13 @@
{ pkgs ? import (fetchGit (import ./pkgs.nix)) {}
, compiler ? "ghc822"
}:
pkgs.haskell.packages.${compiler}.developPackage {
root = ./.;
name = "brittany";
overrides = with pkgs.haskell.lib; self: super: {
};
source-overrides = {
ghc-exactprint = "0.5.8.0";
};
}

5
pkgs.nix Normal file
View File

@ -0,0 +1,5 @@
{
url = "https://github.com/nixos/nixpkgs.git";
ref = "release-18.09";
rev = "b9fa31cea0e119ecf1867af4944ddc2f7633aacd";
}