Move Haskell-related shell.nix code into its own shell.nix

I'm getting tired of:

```shell
$ cd <project-root>
$ nix-shell
$ cd src/server
$ ghci Main.hs
```

Instead:

```shell
$ cd <project-root>/src/server
$ ghci Main.hs
```
This commit is contained in:
William Carroll 2020-08-09 22:11:39 +01:00
parent 26b7237aab
commit 7d85ba559d
2 changed files with 19 additions and 11 deletions

View file

@ -5,16 +5,5 @@ in pkgs.mkShell {
elmPackages.elm
elmPackages.elm-format
elmPackages.elm-live
(haskellPackages.ghcWithPackages (hpkgs: [
hpkgs.hspec
hpkgs.servant-server
hpkgs.aeson
hpkgs.wai-cors
hpkgs.warp
hpkgs.jwt
hpkgs.unordered-containers
hpkgs.base64
hpkgs.http-conduit
]))
];
}

View file

@ -0,0 +1,19 @@
let
pkgs = import /home/wpcarro/nixpkgs {};
in pkgs.mkShell {
buildInputs = with pkgs; [
(haskellPackages.ghcWithPackages (hpkgs: [
hpkgs.hspec
hpkgs.servant-server
hpkgs.aeson
hpkgs.wai-cors
hpkgs.warp
hpkgs.jwt
hpkgs.unordered-containers
hpkgs.base64
hpkgs.http-conduit
hpkgs.rio
hpkgs.envy
]))
];
}