2014-02-04 23:13:30 +04:00
|
|
|
{ stdenv, fetchurl, mesa, libX11 }:
|
2010-02-06 01:00:51 +03:00
|
|
|
|
2014-02-04 23:13:30 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-18 18:35:19 +04:00
|
|
|
name = "glfw-2.7.9";
|
2009-11-30 04:05:02 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-04 23:13:30 +04:00
|
|
|
url = "mirror://sourceforge/glfw/${name}.tar.bz2";
|
2013-12-18 18:35:19 +04:00
|
|
|
sha256 = "17c2msdcb7pn3p8f83805h1c216bmdqnbn9hgzr1j8wnwjcpxx6i";
|
2009-11-30 04:05:02 +03:00
|
|
|
};
|
|
|
|
|
2014-02-04 23:13:30 +04:00
|
|
|
buildInputs = [ mesa libX11 ];
|
2009-11-30 04:05:02 +03:00
|
|
|
|
|
|
|
buildPhase = ''
|
2014-02-04 23:13:30 +04:00
|
|
|
make x11
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-19 00:16:00 +04:00
|
|
|
mkdir -p $out
|
2009-11-30 04:05:02 +03:00
|
|
|
make x11-install PREFIX=$out
|
2014-02-04 23:13:30 +04:00
|
|
|
'';
|
2010-02-06 01:00:51 +03:00
|
|
|
|
2014-02-04 23:13:30 +04:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 19:35:01 +04:00
|
|
|
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
|
2014-02-04 23:13:30 +04:00
|
|
|
homepage = "http://glfw.sourceforge.net/";
|
|
|
|
license = licenses.zlib;
|
2010-07-28 19:35:01 +04:00
|
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
2014-02-04 23:13:30 +04:00
|
|
|
platforms = platforms.linux;
|
2009-11-30 04:05:02 +03:00
|
|
|
};
|
|
|
|
}
|