diff --git a/shell.nix b/shell.nix index 458964dc7f..e1576d3cb1 100644 --- a/shell.nix +++ b/shell.nix @@ -1,20 +1,27 @@ { pkgs ? import {} }: -(pkgs.buildFHSUserEnv { - name = "factor"; - targetPkgs = pkgs: (with pkgs; [ - # for running factor - gtk2-x11 +with pkgs; +let + mkClangShell = mkShell.override { stdenv = clangStdenv; }; + runtimeLibs = with xorg; [ glib + pango cairo + gtk2-x11 gdk_pixbuf - gnome2.pango - cairo gnome2.gtkglext - + pcre + mesa_glu + freealut + openssl + udis86 # available since NixOS 19.09 + openal + ]; +in +(mkClangShell { + name = "factor-shell-env"; + LD_LIBRARY_PATH = "/run/opengl-driver/lib:${lib.makeLibraryPath runtimeLibs}" ; + buildInputs = runtimeLibs ++ [ # for building factor - clang git curl - binutils - ]); - runScript = "bash"; -}).env + ]; +})