2010-07-28 17:35:01 +02:00
|
|
|
{ stdenv, fetchurl, mesa, libX11, libXext }:
|
2010-02-05 23:00:51 +01:00
|
|
|
|
2009-11-30 02:05:02 +01:00
|
|
|
stdenv.mkDerivation {
|
2010-07-28 17:35:01 +02:00
|
|
|
name = "glfw-2.6";
|
2009-11-30 02:05:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-02-05 23:00:51 +01:00
|
|
|
url = mirror://sourceforge/glfw/glfw-2.6.tar.bz2;
|
2009-11-30 02:05:02 +01:00
|
|
|
sha256 = "1jnz7szax7410qrkiwkvq34sxy11w46ybyqbkaczdyvqas6cm1hv";
|
|
|
|
};
|
|
|
|
|
2010-07-28 17:35:01 +02:00
|
|
|
buildInputs = [ mesa libX11 libXext ];
|
2009-11-30 02:05:02 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out
|
2009-11-30 02:05:02 +01:00
|
|
|
make x11-install PREFIX=$out
|
|
|
|
'';
|
2010-02-05 23:00:51 +01:00
|
|
|
|
2010-07-28 17:35:01 +02:00
|
|
|
installPhase = ":";
|
2009-11-30 02:05:02 +01:00
|
|
|
|
|
|
|
meta = {
|
2010-07-28 17:35:01 +02:00
|
|
|
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
|
2009-11-30 02:05:02 +01:00
|
|
|
homepage = http://glfw.sourceforge.net/;
|
|
|
|
license = "zlib/libpng"; # http://www.opensource.org/licenses/zlib-license.php
|
2010-07-28 17:35:01 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2009-11-30 02:05:02 +01:00
|
|
|
};
|
|
|
|
}
|