From 09474b8ca1ac816744cfa0e4682150ccb1890a93 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Mon, 30 Nov 2009 01:05:02 +0000 Subject: [PATCH] adding glefw svn path=/nixpkgs/trunk/; revision=18707 --- pkgs/development/libraries/glefw/default.nix | 25 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 ++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/libraries/glefw/default.nix diff --git a/pkgs/development/libraries/glefw/default.nix b/pkgs/development/libraries/glefw/default.nix new file mode 100644 index 000000000000..e58244cf818e --- /dev/null +++ b/pkgs/development/libraries/glefw/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 80a9cc2af650..c09b7559b9f8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3333,6 +3333,11 @@ let inherit (xlibs) libXmu libXi; }; + glefw = import ../development/libraries/glefw { + inherit fetchurl stdenv lib mesa; + inherit (xlibs) libX11 libXext xextproto; + }; + glibc = let haveRedHatKernel = system == "i686-linux" || system == "x86_64-linux"; haveBrokenRedHatKernel = haveRedHatKernel && getConfig ["brokenRedHatKernel"] false;