diff options
author | Linnea Gräf <nea@nea.moe> | 2024-05-06 17:58:01 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-05-06 18:18:10 +0200 |
commit | 2042d63e3f50d364b29e8c59a517a6ca500fc0cb (patch) | |
tree | 86c2d976a76494dcd234077ba4d9db7f764abc84 | |
parent | f48066a380bf6c7b1dd5e4d6fda25daaabf052de (diff) | |
download | Firmament-2042d63e3f50d364b29e8c59a517a6ca500fc0cb.tar.gz Firmament-2042d63e3f50d364b29e8c59a517a6ca500fc0cb.tar.bz2 Firmament-2042d63e3f50d364b29e8c59a517a6ca500fc0cb.zip |
Improve shell.nix
[no changelog]
-rw-r--r-- | shell.nix | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -13,10 +13,30 @@ pkgs.mkShell { glfw jdk21 libGL + wayland + flite + jack2 + openal + pulseaudio + pipewire + glibc ]; shellHook = '' export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.glfw}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.pipewire}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.pulseaudio}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.jack2}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.openal}/lib" export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.libGL}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.wayland}/lib" + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${pkgs.flite}/lib" export JAVA_HOME=${pkgs.jdk21} + apply() { + echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >.env + echo org.lwjgl.glfw.libname=${pkgs.glfw}/lib/libglfw.so >.properties + echo "jna.library.path=$LD_LIBRARY_PATH" >>.properties + echo "java.library.path=$LD_LIBRARY_PATH" >>.properties + } + ''; } |