Skip to content

Commit de99d6b

Browse files
committed
Add flake.nix
1 parent 1934f94 commit de99d6b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

flake.nix

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4+
};
5+
6+
outputs =
7+
{ nixpkgs, ... }:
8+
let
9+
forAllSystems = nixpkgs.lib.genAttrs [
10+
"aarch64-linux"
11+
"x86_64-linux"
12+
"aarch64-darwin"
13+
];
14+
in
15+
{
16+
devShells = forAllSystems (
17+
system:
18+
let
19+
pkgs = nixpkgs.legacyPackages.${system};
20+
in
21+
{
22+
default = pkgs.mkShell {
23+
nativeBuildInputs = with pkgs; [
24+
pkg-config
25+
];
26+
buildInputs = with pkgs; [
27+
rustup
28+
libinput
29+
udev
30+
];
31+
};
32+
33+
}
34+
);
35+
};
36+
}

0 commit comments

Comments
 (0)