forked from EMI-Group/evox
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
30 lines (29 loc) · 851 Bytes
/
Copy pathflake.nix
File metadata and controls
30 lines (29 loc) · 851 Bytes
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
{
description = "evox";
inputs = {
nixpkgs.url = "github:ogoid/nixpkgs/fixup-missing-cudnn";
utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, utils, flake-compat }:
with utils.lib;
with nixpkgs.lib;
eachSystem (with system; [ x86_64-linux ]) (system:
let
builder = import ./dev_env_builder.nix;
cuda-env = builder { inherit system nixpkgs; cudaSupport = true; };
cpu-env = builder { inherit system nixpkgs; cudaSupport = false; };
in
{
devShells.default = cpu-env;
devShells.cpu = cpu-env;
devShells.cuda = cuda-env;
devShells.fhs = import ./fhs.nix {
inherit nixpkgs system; cudaSupport=true;
};
}
);
}