From 695f4cec3b8216577b9ce7e0b017e23b2eb19212 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Fri, 10 Jun 2016 23:45:06 -0400 Subject: OpenGL example using glium. --- rust/opengl/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 rust/opengl/default.nix (limited to 'rust/opengl/default.nix') diff --git a/rust/opengl/default.nix b/rust/opengl/default.nix new file mode 100644 index 0000000..522e4d0 --- /dev/null +++ b/rust/opengl/default.nix @@ -0,0 +1,10 @@ +with import {}; +with xorg; +{ + allowUnfree = true; + games = stdenv.mkDerivation rec { + name = "opengl"; + buildInputs = [ libXi libX11 xorg.libXext xorg.libXcursor xorg.libXrandr xorg.libXxf86vm mesa openal ]; + LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs; + }; +} -- cgit v1.2.3