summary refs log tree commit diff
path: root/pkgs/development/libraries/glefw/default.nix
blob: bf4d0f504de6869cb15d1918195e5f776d65d5bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
args: with args;

stdenv.mkDerivation {
  name = "glefw-2.6";

  src = fetchurl {
    url = mirror://sourceforge/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;
  };
}