summary refs log tree commit diff
path: root/pkgs/development/libraries/glfw/2.x.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/glfw/2.x.nix')
-rw-r--r--pkgs/development/libraries/glfw/2.x.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/libraries/glfw/2.x.nix b/pkgs/development/libraries/glfw/2.x.nix
new file mode 100644
index 00000000000..8750cd955a6
--- /dev/null
+++ b/pkgs/development/libraries/glfw/2.x.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, mesa, libX11 }:
+
+stdenv.mkDerivation rec {
+  name = "glfw-2.7.9";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/glfw/${name}.tar.bz2";
+    sha256 = "17c2msdcb7pn3p8f83805h1c216bmdqnbn9hgzr1j8wnwjcpxx6i";
+  };
+
+  buildInputs = [ mesa libX11 ];
+
+  buildPhase = ''
+    make x11
+  '';
+
+  installPhase = ''
+    mkdir -p $out
+    make x11-install PREFIX=$out
+  ''; 
+  
+  meta = with stdenv.lib; { 
+    description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
+    homepage = "http://glfw.sourceforge.net/";
+    license = licenses.zlib;
+    maintainers = [ stdenv.lib.maintainers.marcweber ];
+    platforms = platforms.linux;
+  };
+}