2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, libGLU, libGL, libX11, libXext }:
|
2010-02-05 22:00:51 +00:00
|
|
|
|
2014-02-04 19:13:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-18 14:35:19 +00:00
|
|
|
name = "glfw-2.7.9";
|
2009-11-30 01:05:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-04 19:13:30 +00:00
|
|
|
url = "mirror://sourceforge/glfw/${name}.tar.bz2";
|
2013-12-18 14:35:19 +00:00
|
|
|
sha256 = "17c2msdcb7pn3p8f83805h1c216bmdqnbn9hgzr1j8wnwjcpxx6i";
|
2009-11-30 01:05:02 +00:00
|
|
|
};
|
|
|
|
|
2018-02-24 12:59:47 +00:00
|
|
|
buildInputs = [ libGLU libGL libX11 libXext ];
|
2009-11-30 01:05:02 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
2014-02-04 19:13:30 +00:00
|
|
|
make x11
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out
|
2015-02-03 20:33:26 +00:00
|
|
|
make x11-dist-install PREFIX=$out
|
|
|
|
mv $out/lib/libglfw.so $out/lib/libglfw.so.2
|
|
|
|
ln -s libglfw.so.2 $out/lib/libglfw.so
|
2021-01-19 21:20:11 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2010-07-28 15:35:01 +00:00
|
|
|
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://glfw.sourceforge.net/";
|
2014-02-04 19:13:30 +00:00
|
|
|
license = licenses.zlib;
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = [ lib.maintainers.marcweber ];
|
2014-02-04 19:13:30 +00:00
|
|
|
platforms = platforms.linux;
|
2009-11-30 01:05:02 +00:00
|
|
|
};
|
|
|
|
}
|