diff options
Diffstat (limited to 'website/sandbox/learnpianochords/src/server/default.nix')
-rw-r--r-- | website/sandbox/learnpianochords/src/server/default.nix | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/website/sandbox/learnpianochords/src/server/default.nix b/website/sandbox/learnpianochords/src/server/default.nix index a39f89b043ba..4efe1183d16a 100644 --- a/website/sandbox/learnpianochords/src/server/default.nix +++ b/website/sandbox/learnpianochords/src/server/default.nix @@ -1,27 +1,27 @@ let - pkgs = import /home/wpcarro/nixpkgs {}; - ghc = pkgs.haskellPackages.ghcWithPackages (hpkgs: [ - hpkgs.servant-server - hpkgs.aeson - hpkgs.wai-cors - hpkgs.warp - hpkgs.jwt - hpkgs.unordered-containers - hpkgs.base64 - hpkgs.http-conduit - hpkgs.rio - ]); -in pkgs.stdenv.mkDerivation { - name = "LearnPianoChords-server"; + briefcase = import /home/wpcarro/briefcase {}; +in briefcase.buildHaskell.program { + name = "server"; srcs = builtins.path { path = ./.; name = "LearnPianoChords-server-src"; }; - buildPhase = '' - ${ghc} -O Main.hs \ - -XOverloadedStrings \ - -XNoImplicitPrelude \ - -XRecordWildCards \ - -XTypeApplications - ''; + ghcExtensions = [ + "OverloadedStrings" + "NoImplicitPrelude" + "RecordWildCards" + "TypeApplications" + ]; + deps = hpkgs: with hpkgs; [ + servant-server + aeson + wai-cors + warp + jwt + unordered-containers + base64 + http-conduit + rio + envy + ]; } |