-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
52 lines (44 loc) · 1.39 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
description = "Development Environments";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
nixpkgs,
rust-overlay,
self,
}: let
systems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f {
pkgs = let
overlays = [ (import rust-overlay) ];
in
import nixpkgs { inherit system overlays; config = { allowUnfree = true; }; };
});
in {
devShells = forAllSystems ({ pkgs }: {
python = import ./modules/python {inherit pkgs;};
qt = import ./modules/python/qt {inherit pkgs;};
cpp = import ./modules/cpp {inherit pkgs;};
sdl = import ./modules/cpp/sdl {inherit pkgs;};
opengl = import ./modules/cpp/opengl {inherit pkgs;};
vulkan = import ./modules/cpp/vulkan {inherit pkgs;};
gtk = import ./modules/cpp/gtk {inherit pkgs;};
llama = import ./modules/cpp/llama {inherit pkgs;};
fabric = import ./modules/java/fabric {inherit pkgs;};
tauri = import ./modules/web/tauri {inherit pkgs;};
bevy = import ./modules/rust/bevy {inherit pkgs;};
vulkano = import ./modules/rust/vulkano {inherit pkgs;};
});
};
}