-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
44 lines (42 loc) · 1.04 KB
/
flake.nix
File metadata and controls
44 lines (42 loc) · 1.04 KB
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
};
outputs =
{ self, nixpkgs, ... }:
let
eachSystem = nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"riscv64-linux"
];
in
{
devShells = eachSystem (
system: with nixpkgs.legacyPackages.${system}; {
default = mkShell rec {
nativeBuildInputs = [
# TODO: rustup is required because wasm32 rustc requires compiler-rt which doesn't support wasm32 atm.
#pkgsCross.wasm32-unknown-none.buildPackages.rustc
#rustc
#cargo
#rust-analyzer
#rustfmt
#clippy
rustup
nixfmt-rfc-style
nixd
pkg-config
];
buildInputs = [
fontconfig
wayland
libxkbcommon
vulkan-loader
];
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
};
}
);
};
}