forked from higherkindness/mu-haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
44 lines (44 loc) · 1.9 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
let
haskellNix = import (builtins.fetchTarball https://github.com/input-output-hk/haskell.nix/archive/c22fb2e.tar.gz) {};
nixpkgsSrc = haskellNix.sources.nixpkgs-2111;
nixpkgsArgs = haskellNix.nixpkgsArgs;
in
{ pkgs ? import nixpkgsSrc nixpkgsArgs
}:
let
gitignoreSrc = pkgs.fetchFromGitHub {
owner = "hercules-ci";
repo = "gitignore";
rev = "c4662e6";
sha256 = "sha256:1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx";
};
inherit (import gitignoreSrc { inherit (pkgs) lib; }) gitignoreSource;
hnPkgs = pkgs.haskell-nix.stackProject {
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "mu-haskell";
src = gitignoreSource ./.;
};
};
in {
mu-avro = hnPkgs.mu-avro.components.library;
mu-example-health-check = hnPkgs.mu-example-health-check.components.exes;
mu-example-library = hnPkgs.mu-example-library.components.exes;
mu-example-route-guide = hnPkgs.mu-example-route-guide.components.exes;
mu-example-seed = hnPkgs.mu-example-seed.components.exes;
mu-example-todolist = hnPkgs.mu-example-todolist.components.exes;
mu-example-with-persistent = hnPkgs.mu-example-with-persistent.components.exes;
mu-graphql = hnPkgs.mu-graphql.components.library;
mu-grpc-client = hnPkgs.mu-grpc-client.components.library;
mu-grpc-common = hnPkgs.mu-grpc-common.components.library;
mu-grpc-server = hnPkgs.mu-grpc-server.components.library;
mu-kafka = hnPkgs.mu-kafka.components.library;
mu-lens = hnPkgs.mu-lens.components.library;
mu-optics = hnPkgs.mu-optics.components.library;
mu-persistent = hnPkgs.mu-persistent.components.library;
mu-prometheus = hnPkgs.mu-prometheus.components.library;
mu-protobuf = hnPkgs.mu-protobuf.components.library;
mu-rpc = hnPkgs.mu-rpc.components.library;
mu-schema = hnPkgs.mu-schema.components.library;
mu-servant-server = hnPkgs.mu-servant-server.components.library;
mu-tracing = hnPkgs.mu-tracing.components.library;
}