-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdefault.nix
28 lines (26 loc) · 1.13 KB
/
default.nix
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
28
let
pkgs = import <nixpkgs> { inherit config; };
config = {
packageOverrides = pkgs: rec {
haskellPackages = pkgs.haskellPackages.override {
overrides = haskellPackagesNew: haskellPackagesOld: rec {
wamp-common = haskellPackages.callPackage ./wamp-common {};
wamp-client = haskellPackages.callPackage ./wamp-client {};
wamp-router = haskellPackages.callPackage ./wamp-router {};
wamp = haskellPackages.callPackage ./wamp {};
# Examples
warp-wamp-router = haskellPackages.callPackage ./examples/warp-wamp-router {};
};
};
};
};
in {
# Libraries - To use in REPL, call `nix-shell --attr *.env ../../default.nix` from package directory.
# Where `*` is the package name.
wamp-common = pkgs.haskellPackages.wamp-common;
wamp-client = pkgs.haskellPackages.wamp-client;
wamp-router = pkgs.haskellPackages.wamp-router;
wamp = pkgs.haskellPackages.wamp;
# Examples
warp-wamp-router = pkgs.haskellPackages.warp-wamp-router;
}