mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
32 lines
823 B
Nix
32 lines
823 B
Nix
{ stdenv, fetchurl, mesa, libX11 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "glfw-2.7.9";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/glfw/${name}.tar.bz2";
|
|
sha256 = "17c2msdcb7pn3p8f83805h1c216bmdqnbn9hgzr1j8wnwjcpxx6i";
|
|
};
|
|
|
|
buildInputs = [ mesa libX11 ];
|
|
|
|
buildPhase = ''
|
|
make x11
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
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 stdenv.lib; {
|
|
description = "Multi-platform library for creating OpenGL contexts and managing input, including keyboard, mouse, joystick and time";
|
|
homepage = http://glfw.sourceforge.net/;
|
|
license = licenses.zlib;
|
|
maintainers = [ stdenv.lib.maintainers.marcweber ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|