2015-05-25 03:49:54 +01:00
|
|
|
{ stdenv, fetchurl, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, x11
|
|
|
|
, libXinerama, libXcursor
|
|
|
|
}:
|
2014-02-04 19:13:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-25 03:49:54 +01:00
|
|
|
name = "glfw-3.1.1";
|
2014-02-04 19:13:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/glfw/${name}.tar.bz2";
|
2015-05-25 03:49:54 +01:00
|
|
|
sha256 = "0q9dhbj2az7jwwi556zai0qr8zmg6d2lyxcqngppkw0x7hi1d1aa";
|
2014-02-04 19:13:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-05-25 03:49:54 +01:00
|
|
|
buildInputs = [
|
|
|
|
cmake mesa libXrandr libXi libXxf86vm libXfixes x11
|
|
|
|
libXinerama libXcursor
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = "-DBUILD_SHARED_LIBS=ON";
|
2014-02-04 19:13:30 +00:00
|
|
|
|
|
|
|
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 = with maintainers; [ marcweber ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|