]> gitweb.factorcode.org Git - factor.git/commitdiff
shell.nix: use correct opengl dependencies, fix runtime lib path
authortimor <timor.dd@googlemail.com>
Sat, 21 Nov 2020 16:48:07 +0000 (17:48 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 23 Feb 2021 16:58:30 +0000 (08:58 -0800)
shell.nix

index fa19e72dcc63db877971ad7408a7dd09d3976093..6f729fd156c87ad9e01b5ab095253dbd20bc7a3f 100644 (file)
--- a/shell.nix
+++ b/shell.nix
@@ -9,7 +9,8 @@ let
     gdk_pixbuf
     gnome2.gtkglext
     pcre
-    mesa_glu
+    libGL
+    libGLU
     freealut
     openssl
     udis86 # available since NixOS 19.09
@@ -18,11 +19,11 @@ let
     libvorbis
     zlib
   ];
-  runtimeLibPath = lib.makeLibraryPath runtimeLibs;
+  runtimeLibPath = "/run/opengl-driver/lib:" + lib.makeLibraryPath runtimeLibs;
 in
 (mkClangShell {
   name = "factor-shell-env";
-  LD_LIBRARY_PATH = "/run/opengl-driver/lib:${runtimeLibPath}" ;
+  LD_LIBRARY_PATH = runtimeLibPath ;
   buildInputs = runtimeLibs ++ [
     # for building factor
     git