diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-12T15·28+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-12T15·28+0100 |
commit | 2da4b12266322a3cfb7aa31cc24cfa591eb4e3d0 (patch) | |
tree | be1a0fceb5f2e213f077ad4924c71942551687d4 /website/sandbox/learnpianochords/src/server/shell.nix | |
parent | 4ea55dd0130f33877deed5fc6822ac4d80ce3aef (diff) |
Consume buildHaskell functions
Use the newly defined `buildHaskell` function for a few of my existing Haskell projects. So far, it works as intended!
Diffstat (limited to 'website/sandbox/learnpianochords/src/server/shell.nix')
-rw-r--r-- | website/sandbox/learnpianochords/src/server/shell.nix | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/website/sandbox/learnpianochords/src/server/shell.nix b/website/sandbox/learnpianochords/src/server/shell.nix index 6cb5e19e99fa..4d787184bd4a 100644 --- a/website/sandbox/learnpianochords/src/server/shell.nix +++ b/website/sandbox/learnpianochords/src/server/shell.nix @@ -1,19 +1,17 @@ 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 - ])) + briefcase = import /home/wpcarro/briefcase {}; +in briefcase.buildHaskell.shell { + deps = hpkgs: with hpkgs; [ + hspec + servant-server + aeson + wai-cors + warp + jwt + unordered-containers + base64 + http-conduit + rio + envy ]; } |