-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
29 lines (27 loc) · 1018 Bytes
/
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
{ pkgs ? (import nix/pkgs.nix)
, withProfiling ? false
, withCoverage ? false
}:
pkgs.haskell-nix.project {
src = pkgs.haskell-nix.haskellLib.cleanGit {
name = "rio-process-pool";
src = ./.;
};
configureArgs = "--flags=development";
projectFileName = "cabal.project";
compiler-nix-name = "ghc8105";
modules =
[
{
packages.rio-process-pool.components.library.doCoverage = withCoverage;
packages.rio-process-pool.components.tests.rio-process-pool-test.doCoverage = withCoverage;
}
] ++
(if withProfiling then
[{
packages.rio-process-pool.components.library.enableLibraryProfiling = true;
packages.rio-process-pool.components.exes.rio-process-pool-memleak-test.enableExecutableProfiling = true;
packages.rio-process-pool.components.tests.rio-process-pool-test.enableExecutableProfiling = true;
packages.rio-process-pool.components.benchmarks.rio-process-pool-bench.enableExecutableProfiling = true;
}] else [ ]);
}