devShells: rust-x11

This commit is contained in:
L-Nafaryus 2024-01-13 11:54:07 +05:00
parent fcddc9a7d4
commit 1b2822c813
No known key found for this signature in database
GPG Key ID: C76D8DCD2727DBB7
2 changed files with 11 additions and 0 deletions

View File

@ -17,6 +17,7 @@ in forAllSystems(system: let
openfoam = import ./openfoam.nix { inherit pkgs bpkgs; }; openfoam = import ./openfoam.nix { inherit pkgs bpkgs; };
rust = import ./rust.nix { inherit pkgs cranelib; }; rust = import ./rust.nix { inherit pkgs cranelib; };
rust-x11 = import ./rust-x11.nix { inherit pkgs cranelib; };
go = import ./go.nix { inherit pkgs; }; go = import ./go.nix { inherit pkgs; };
}) })

10
devShells/rust-x11.nix Normal file
View File

@ -0,0 +1,10 @@
{ pkgs, cranelib, ... }:
cranelib.devShell {
packages = with pkgs; [ libGL xorg.libXi xorg.libX11 xorg.libXcursor lld libxkbcommon ];
shellHook = ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${
with pkgs; lib.makeLibraryPath [ libGL xorg.libX11 xorg.libXi xorg.libXcursor libxkbcommon ]
}"
'';
}