diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-09T21·11+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-09T21·11+0100 |
commit | 7d85ba559dd50e0552abccb45d1cf5766ebcb541 (patch) | |
tree | 0bb0df8da3cba69b31bb6b20b7c8717f87155e93 | |
parent | 26b7237aab8ec05526814be18603d18f537b3978 (diff) |
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 ```
-rw-r--r-- | website/sandbox/learnpianochords/shell.nix | 11 | ||||
-rw-r--r-- | website/sandbox/learnpianochords/src/server/shell.nix | 19 |
2 files changed, 19 insertions, 11 deletions
diff --git a/website/sandbox/learnpianochords/shell.nix b/website/sandbox/learnpianochords/shell.nix index 9402ad5674d2..6cc05d099177 100644 --- a/website/sandbox/learnpianochords/shell.nix +++ b/website/sandbox/learnpianochords/shell.nix @@ -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 - ])) ]; } diff --git a/website/sandbox/learnpianochords/src/server/shell.nix b/website/sandbox/learnpianochords/src/server/shell.nix new file mode 100644 index 000000000000..6cb5e19e99fa --- /dev/null +++ b/website/sandbox/learnpianochords/src/server/shell.nix @@ -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 + ])) + ]; +} |