1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/development/libraries/glfw/2.x.nix
William A. Kennington III 6b2533c48f glfw: Update packaging and add v3
This patch cleans up the previous glfw2 package. Additionally, it adds
glfw3 and makes that the new default glfw version.
2014-02-07 16:05:28 +00:00

30 lines
728 B
Nix

{ stdenv, fetchurl, mesa, libX11 }:
stdenv.mkDerivation rec {
name = "glfw-2.7.9";
src = fetchurl {
url = "mirror://sourceforge/glfw/${name}.tar.bz2";
sha256 = "17c2msdcb7pn3p8f83805h1c216bmdqnbn9hgzr1j8wnwjcpxx6i";
};
buildInputs = [ mesa libX11 ];
buildPhase = ''
make x11
'';
installPhase = ''
mkdir -p $out
make x11-install PREFIX=$out
'';
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 = [ stdenv.lib.maintainers.marcweber ];
platforms = platforms.linux;
};
}