-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefault.nix
More file actions
53 lines (44 loc) · 1.56 KB
/
Copy pathdefault.nix
File metadata and controls
53 lines (44 loc) · 1.56 KB
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
45
46
47
48
49
50
51
52
53
let
localLib = import ./lib.nix;
in
{ system ? builtins.currentSystem
, config ? {} # The nixpkgs configuration file
# Use a pinned version nixpkgs.
, pkgs ? localLib.pkgs
# Disable running of tests for all local packages.
, forceDontCheck ? false
# Enable profiling for all haskell packages.
# Profiling slows down performance by 50% so we don't enable it by default.
, enableProfiling ? false
# Enable separation of build/check derivations.
, enableSplitCheck ? true
# Keeps the debug information for all haskell packages.
, enableDebugging ? false
# Build (but don't run) benchmarks for all local packages.
, enableBenchmarks ? false
# Overrides all nix derivations to add build timing information in
# their build output.
, enablePhaseMetrics ? true
# Overrides all nix derivations to add haddock hydra output.
, enableHaddockHydra ? false
# Disables optimization in the build for all local packages.
, fasterBuild ? false
}:
let
packages = self: ({
inherit pkgs;
haskellPackages = self.callPackage localLib.iohkNix.haskellPackages {
inherit forceDontCheck enableProfiling enablePhaseMetrics enableHaddockHydra
enableBenchmarks fasterBuild enableDebugging enableSplitCheck;
pkgsGenerated = pkgs.haskell.packages.ghc843;
ghc = pkgs.haskell.compiler.ghc843;
filter = localLib.isLogClassifier;
requiredOverlay = ./nix/overlays/required.nix;
};
}
# fixme: Temporary fix for hydra evaluation
// { inherit (self.haskellPackages)
log-classifier
log-classifier-web;
});
in pkgs.lib.makeScope pkgs.newScope packages