From 51ca8fd5d7e8d8f0a7ffc63de5d6ba62141eaaba Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Sat, 6 Nov 2021 21:31:55 +0000 Subject: [PATCH] Remove Nix configuration --- README.md | 18 ------------------ default.nix | 18 ------------------ 2 files changed, 36 deletions(-) delete mode 100644 default.nix diff --git a/README.md b/README.md index 5ee23ac..d88aed4 100644 --- a/README.md +++ b/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 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 '' --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 diff --git a/default.nix b/default.nix deleted file mode 100644 index ed3dcca..0000000 --- a/default.nix +++ /dev/null @@ -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; -}