about summary refs log tree commit diff
path: root/website/sandbox/learnpianochords/src/server/default.nix
blob: a39f89b043ba3d9f0ca6d016567c733a4ddb669f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
  '';
}