-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathflake.nix
34 lines (33 loc) · 902 Bytes
/
flake.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
{
description = "evox";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, utils }:
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;
};
rocm-env = builder {
inherit system nixpkgs;
rocmSupport = true;
};
vulkan-env = builder {
inherit system nixpkgs;
vulkanSupport = true;
};
cpu-env = builder { inherit system nixpkgs; };
in {
devShells.default = cpu-env;
devShells.cpu = cpu-env;
devShells.cuda = cuda-env;
devShells.rocm = rocm-env;
devShells.vulkan = vulkan-env;
});
}