aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 75953c61358c7edd2c61ce489f6a61a2c6e741be (plain)
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
{ pkgs ? (import <nixpkgs> {})
, compilerName ? "ghc7103"
}:

rec {
  haskellPackages = pkgs.haskell.packages."${compilerName}";
  threepenny-gui = pkgs.haskell.lib.appendPatch haskellPackages.threepenny-gui ./threepenny.patch;
  thermoprint-spec = haskellPackages.callPackage ./spec/thermoprint-spec.nix {};
  thermoprint-bbcode = haskellPackages.callPackage ./tp-bbcode/thermoprint-bbcode.nix {
    inherit bbcode thermoprint-spec;
  };
  thermoprint-client = haskellPackages.callPackage ./client/thermoprint-client.nix {
    inherit thermoprint-spec;
  };
  thermoprint-server = pkgs.callPackage ./server/wrapped.nix {
    inherit (haskellPackages) ghcWithPackages;
    thermoprint-server = haskellPackages.callPackage ./server/thermoprint-server.nix {
      inherit thermoprint-spec thermoprint-client;
    };
  };
  thermoprint-webgui = haskellPackages.callPackage ./webgui/thermoprint-webgui.nix {
    inherit thermoprint-bbcode thermoprint-client threepenny-gui;
  };
  bbcode = haskellPackages.callPackage ./bbcode/bbcode.nix {};
}