-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.nix
35 lines (32 loc) · 1.35 KB
/
release.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
29
30
31
32
33
34
35
{
nixpkgs ? import <nixpkgs>
, compiler ? "ghc822"
}:
let
config = {
allowUnfree = true;
packageOverrides = pkgs: rec {
haskell = pkgs.haskell // {
packages = pkgs.haskell.packages // {
"${compiler}" = pkgs.haskell.packages."${compiler}".override {
overrides = haskellPackagesNew: haskellPackagesOld: rec {
daft = haskellPackagesNew.callPackage ./daft/default.nix { };
daft-mongodb = haskellPackagesNew.callPackage ./daft-mongodb/default.nix { };
daft-postgresql = haskellPackagesNew.callPackage ./daft-postgresql/default.nix { };
bson-generic = haskellPackagesNew.callPackage ./bson-generic.nix { };
raft = haskellPackagesNew.callPackage ./raft.nix { };
type-list = haskellPackagesNew.callPackage ./type-list.nix { };
vinyl = haskellPackagesNew.callPackage ./vinyl.nix { };
};
};
};
};
};
};
pkgs = import <nixpkgs> { inherit config; };
in
{
daft = pkgs.haskell.packages.${compiler}.daft ;
daft-mongodb = pkgs.haskell.packages.${compiler}.daft-mongodb ;
daft-postgresql = pkgs.haskell.packages.${compiler}.daft-postgresql;
}