summaryrefslogtreecommitdiff
path: root/default.nix
blob: 95764eb436d3464943cd0eaeb8bb37b45ccb6d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ nixpkgs ? import <nixpkgs> {}, compiler ? "default" }:

let

  inherit (nixpkgs) pkgs;

  haskellPackages = if compiler == "default"
                       then pkgs.haskellPackages
                       else pkgs.haskell.packages.${compiler};

  inherit (haskellPackages) callPackage;

in rec {
  tiled = callPackage ./tiled {};
  walint = callPackage ./walint { inherit tiled; };
  walint-cli = callPackage ./walint-cli { inherit walint; };
  server = callPackage ./server { inherit walint; };
}