commit dfd8601efc68d6104d256e3a83092e9fc3dd3d20 parent 365804446ea82ef48d294f0579d80e35af3bcfb7 Author: William Casarin <jb55@jb55.com> Date: Thu, 9 Jan 2020 22:39:22 -0800 direnv Signed-off-by: William Casarin <jb55@jb55.com> Diffstat:
A | .envrc | | | 1 | + |
M | default.nix | | | 11 | ++++++++++- |
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.envrc b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/default.nix b/default.nix @@ -13,7 +13,16 @@ stdenv.mkDerivation rec { makeFlags = "PREFIX=$(out)"; - buildInputs = with pkgs; [ SDL2 mesa ]; + nativeBuildInputs = with pkgs; [ tinycc pkg-config ]; + + buildInputs = with pkgs; [ SDL2 mesa libglvnd ] ++ + (with xorg; [ libX11 libxcb libXau libXdmcp libXext libXcursor + libXrender libXfixes libXinerama libXi libXrandr + libXScrnSaver libXxf86vm ]); + + shellHook = '' + export LD_LIBRARY_PATH=${pkgs.libglvnd}/lib; + ''; meta = with stdenv.lib; { description = "Procedural low poly fun";