nix: add shell.nix
This commit is contained in:
parent
9ad115729f
commit
33847acd53
30
shell.nix
Normal file
30
shell.nix
Normal 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}";
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user