2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libGLU, libGL, libX11, libXext }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-26 17:43:05 +00:00
|
|
|
pname = "glfw";
|
|
|
|
version = "2.7.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-26 17:43:05 +00:00
|
|
|
url = "mirror://sourceforge/glfw/glfw-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "17c2msdcb7pn3p8f83805h1c216bmdqnbn9hgzr1j8wnwjcpxx6i";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libGLU libGL libX11 libXext ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make x11
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
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-02-05 17:12:51 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://glfw.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.zlib;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = [ lib.maintainers.marcweber ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|