From 1b2822c813b7e13aa32c2eb21043026b31b8e0bf Mon Sep 17 00:00:00 2001 From: L-Nafaryus Date: Sat, 13 Jan 2024 11:54:07 +0500 Subject: [PATCH] devShells: rust-x11 --- devShells/default.nix | 1 + devShells/rust-x11.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 devShells/rust-x11.nix 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 ] + }" + ''; +}