nixpkgs/pkgs/development/libraries/glfw/2.x.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
871 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libGLU, libGL, libX11, libXext }:
stdenv.mkDerivation rec {
pname = "glfw";
version = "2.7.9";
src = fetchurl {
url = "mirror://sourceforge/glfw/glfw-${version}.tar.bz2";
2013-12-18 14:35:19 +00:00
sha256 = "17c2msdcb7pn3p8f83805h1c216bmdqnbn9hgzr1j8wnwjcpxx6i";
};
buildInputs = [ libGLU libGL libX11 libXext ];
buildPhase = ''
make x11
'';
installPhase = ''
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
'';
meta = with lib; {
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
homepage = "https://glfw.sourceforge.net/";
license = licenses.zlib;
maintainers = [ lib.maintainers.marcweber ];
platforms = platforms.linux;
};
}