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