-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathconfig.nix
78 lines (66 loc) · 2.4 KB
/
config.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
let
base = {
# git describe: 18.09-beta-4191-g8070a6333f3
nixpkgsRev = "8070a6333f3fc41ef93c2b0e07f999459615cc8d";
nixpkgsSha256 = "0v6nycl7lzr1kdsy151j10ywhxvlb4dg82h55hpjs1dxjamms9i3";
nixpkgsArgs.config = {
allowUnfree = true;
cudaSupport = true;
};
bootPkgsPath = <nixpkgs>;
bootPkgs = null;
basePkgsPath = null;
overlay = self: super: {};
extraOverlay = self: super: {};
srcFilter = lib: lib.nix.sources.ignoreDevCommon;
extraSrcFilter = lib: p: t: true;
srcTransform = lib: s: s;
haskellArgs = {};
pythonArgs = {};
};
haskell = {
ghcVersion = "ghc843";
overrides = pkgs: self: super: {};
extraOverrides = pkgs: self: super: {};
srcFilter = lib: lib.nix.sources.ignoreDevHaskell;
extraSrcFilter = lib: p: t: true;
srcTransform = lib: s: s;
pkgChanges = lib: {};
changePkgs = {};
envMoreTools = nixpkgs: [
(nixpkgs.callPackage (import haskell/tools/nix-tags-haskell) {})
(nixpkgs.callPackage (import haskell/tools/cabal-new-watch) {})
nixpkgs.haskell.packages.ghc843.apply-refact
nixpkgs.haskell.packages.ghc843.cabal2nix
nixpkgs.haskell.packages.ghc843.cabal-install
nixpkgs.haskell.packages.ghc843.ghcid
nixpkgs.haskell.packages.ghc843.hlint
nixpkgs.haskell.packages.ghc843.hoogle
nixpkgs.haskell.packages.ghc843.stylish-haskell
];
};
python = {
pyVersion = "36";
overrides = pkgs: self: super: {};
extraOverrides = pkgs: self: super: {};
srcFilter = lib: lib.nix.sources.ignoreDevPython;
extraSrcFilter = lib: p: t: true;
srcTransform = lib: s: s;
envMoreTools = nixpkgs: [
nixpkgs.autoflake
nixpkgs.python3Packages.flake8
nixpkgs.python3Packages.ipython
nixpkgs.python3Packages.pylint
nixpkgs.python3Packages.yapf
];
envPersists = true;
};
in
rec {
plain = { inherit base haskell python; };
curated = {
base = plain.base // { overlay = import top/overrides; };
haskell = plain.haskell // { overrides = import haskell/overrides; };
python = plain.python // { overrides = import python/overrides; };
};
}