diff options
-rw-r--r-- | website/sandbox/learnpianochords/src/server/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/website/sandbox/learnpianochords/src/server/default.nix b/website/sandbox/learnpianochords/src/server/default.nix new file mode 100644 index 000000000000..a39f89b043ba --- /dev/null +++ b/website/sandbox/learnpianochords/src/server/default.nix @@ -0,0 +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"; + srcs = builtins.path { + path = ./.; + name = "LearnPianoChords-server-src"; + }; + buildPhase = '' + ${ghc} -O Main.hs \ + -XOverloadedStrings \ + -XNoImplicitPrelude \ + -XRecordWildCards \ + -XTypeApplications + ''; +} |