-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathflake.nix
62 lines (54 loc) · 1.5 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
53
54
55
56
57
58
59
60
61
62
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = {
self,
nixpkgs,
unstable,
} @ inputs: let
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = import inputs.nixpkgs {
system = system;
};
unstablePkgs = import inputs.unstable {
system = system;
};
in {
formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
devShells.${system}.default = pkgs.mkShell rec {
nativeBuildInputs = with pkgs; [];
packages = with pkgs; [];
buildInputs = with pkgs; [
# Build tools
gcc
pkg-config
clang-tools
gnumake
curl
unstablePkgs.go
# Cross
pkgsCross.aarch64-multiplatform.buildPackages.gcc # Provides aarch64-unknown-linux-gnu-gcc
# Vulkan bare tools and dependencies
glslang
vulkan-headers
vulkan-loader
vulkan-validation-layers
# More Vulkan tools
vulkan-extension-layer
vulkan-tools
vulkan-tools-lunarg
vulkan-volk
# Frontend
nodejs_22
];
LD_LIBRARY_PATH = "${lib.makeLibraryPath buildInputs}";
VK_LAYER_PATH = "${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d";
VULKAN_SDK = "${pkgs.vulkan-validation-layers}/share/vulkan/explicit_layer.d";
XDG_DATA_DIRS = builtins.getEnv "XDG_DATA_DIRS";
XDG_RUNTIME_DIR = "/run/user/1000";
};
};
}