adding glefw

svn path=/nixpkgs/trunk/; revision=18707
This commit is contained in:
Marc Weber 2009-11-30 01:05:02 +00:00
parent eaee50c232
commit 09474b8ca1
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,25 @@
args: with args;
stdenv.mkDerivation {
name = "glefw-2.6";
src = fetchurl {
url = http://prdownloads.sourceforge.net/glfw/glfw-2.6.tar.bz2;
sha256 = "1jnz7szax7410qrkiwkvq34sxy11w46ybyqbkaczdyvqas6cm1hv";
};
buildInputs = [mesa libX11 libXext];
buildPhase = ''
ensureDir $out
make x11-install PREFIX=$out
'';
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;
};
}

View File

@ -3333,6 +3333,11 @@ let
inherit (xlibs) libXmu libXi; inherit (xlibs) libXmu libXi;
}; };
glefw = import ../development/libraries/glefw {
inherit fetchurl stdenv lib mesa;
inherit (xlibs) libX11 libXext xextproto;
};
glibc = glibc =
let haveRedHatKernel = system == "i686-linux" || system == "x86_64-linux"; let haveRedHatKernel = system == "i686-linux" || system == "x86_64-linux";
haveBrokenRedHatKernel = haveRedHatKernel && getConfig ["brokenRedHatKernel"] false; haveBrokenRedHatKernel = haveRedHatKernel && getConfig ["brokenRedHatKernel"] false;