2009-11-30 01:05:02 +00:00
|
|
|
args: with args;
|
2010-02-05 22:00:51 +00:00
|
|
|
|
2009-11-30 01:05:02 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "glefw-2.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2010-02-05 22:00:51 +00:00
|
|
|
url = mirror://sourceforge/glfw/glfw-2.6.tar.bz2;
|
2009-11-30 01:05:02 +00:00
|
|
|
sha256 = "1jnz7szax7410qrkiwkvq34sxy11w46ybyqbkaczdyvqas6cm1hv";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [mesa libX11 libXext];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
ensureDir $out
|
|
|
|
make x11-install PREFIX=$out
|
|
|
|
'';
|
2010-02-05 22:00:51 +00:00
|
|
|
|
2009-11-30 01:05:02 +00:00
|
|
|
installPhase=":";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
|
|
|
|
homepage = http://glfw.sourceforge.net/;
|
|
|
|
license = "zlib/libpng"; # http://www.opensource.org/licenses/zlib-license.php
|
|
|
|
maintainers = [args.lib.maintainers.marcweber];
|
|
|
|
platforms = args.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|