nix: add shell.nix

This commit is contained in:
Simon Gardling 2025-12-02 22:39:53 -05:00
parent 9ad115729f
commit 33847acd53
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

30
shell.nix Normal file
View File

@ -0,0 +1,30 @@
{
pkgs ? import <nixpkgs> { },
}:
pkgs.mkShell rec {
libs = with pkgs; [
# wayland
libxkbcommon
libGL
wayland
libx11
libxcursor
libxi
clang
];
nativeBuildInputs =
with pkgs;
[
rustc
cargo
rust-analyzer
python3Packages.fonttools
]
++ libs;
# add libs to path
LD_LIBRARY_PATH = "${pkgs.lib.makeLibraryPath libs}";
}