From 7d85ba559dd50e0552abccb45d1cf5766ebcb541 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 9 Aug 2020 22:11:39 +0100 Subject: Move Haskell-related shell.nix code into its own shell.nix I'm getting tired of: ```shell $ cd $ nix-shell $ cd src/server $ ghci Main.hs ``` Instead: ```shell $ cd /src/server $ ghci Main.hs ``` --- website/sandbox/learnpianochords/shell.nix | 11 ----------- website/sandbox/learnpianochords/src/server/shell.nix | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 website/sandbox/learnpianochords/src/server/shell.nix (limited to 'website') 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 + ])) + ]; +} -- cgit 1.4.1