1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 23:20:55 +00:00

Merge pull request #7982 from iyzsong/glfw

glfw: Update to 3.1.1 and build shared library.
This commit is contained in:
William A. Kennington III 2015-05-25 00:23:19 -07:00
commit e7694865ca

View file

@ -1,16 +1,23 @@
{ stdenv, fetchurl, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, x11 }: { stdenv, fetchurl, cmake, mesa, libXrandr, libXi, libXxf86vm, libXfixes, x11
, libXinerama, libXcursor
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "glfw-3.0.4"; name = "glfw-3.1.1";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/glfw/${name}.tar.bz2"; url = "mirror://sourceforge/glfw/${name}.tar.bz2";
sha256 = "1h7g16ncgkl38w19x4dvnn17k9j0kqfvbb9whw9qc71lkq5xf2ag"; sha256 = "0q9dhbj2az7jwwi556zai0qr8zmg6d2lyxcqngppkw0x7hi1d1aa";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;
buildInputs = [ cmake mesa libXrandr libXi libXxf86vm libXfixes x11 ]; buildInputs = [
cmake mesa libXrandr libXi libXxf86vm libXfixes x11
libXinerama libXcursor
];
cmakeFlags = "-DBUILD_SHARED_LIBS=ON";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time"; description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";