diff --git a/devShells/default.nix b/devShells/default.nix index 848b086..27c735c 100644 --- a/devShells/default.nix +++ b/devShells/default.nix @@ -17,6 +17,7 @@ in forAllSystems(system: let openfoam = import ./openfoam.nix { inherit pkgs bpkgs; }; rust = import ./rust.nix { inherit pkgs cranelib; }; + rust-x11 = import ./rust-x11.nix { inherit pkgs cranelib; }; go = import ./go.nix { inherit pkgs; }; }) diff --git a/devShells/rust-x11.nix b/devShells/rust-x11.nix new file mode 100644 index 0000000..001fe98 --- /dev/null +++ b/devShells/rust-x11.nix @@ -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 ] + }" + ''; +}