Skip to content

Commit a526ea6

Browse files
committed
chore: add nix dev shell
1 parent 76e0393 commit a526ea6

2 files changed

Lines changed: 124 additions & 0 deletions

File tree

‎flake.lock‎

Lines changed: 82 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flake.nix‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
rust-overlay = {
6+
url = "github:oxalica/rust-overlay";
7+
inputs = {
8+
nixpkgs.follows = "nixpkgs";
9+
};
10+
};
11+
};
12+
outputs = { self, nixpkgs, flake-utils, rust-overlay }:
13+
flake-utils.lib.eachDefaultSystem
14+
(system:
15+
let
16+
overlays = [ (import rust-overlay) ];
17+
pkgs = import nixpkgs {
18+
inherit system overlays;
19+
};
20+
rustToolchain = pkgs.rust-bin.stable.latest.default;
21+
nativeBuildInputs = with pkgs; [ rustToolchain pkg-config cmake ];
22+
buildInputs = with pkgs; [
23+
alsa-lib
24+
libopus
25+
xorg.libX11
26+
xorg.libXext
27+
xorg.libXinerama
28+
xorg.libXcursor
29+
xorg.libXrender
30+
xorg.libXfixes
31+
xorg.libXft
32+
pango
33+
];
34+
in
35+
with pkgs;
36+
{
37+
devShells.default = mkShell {
38+
inherit nativeBuildInputs buildInputs;
39+
};
40+
}
41+
);
42+
}

0 commit comments

Comments
 (0)