3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/epoxy/default.nix

34 lines
971 B
Nix
Raw Normal View History

2015-08-13 23:00:18 +01:00
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, utilmacros, python
, mesa, libX11
}:
stdenv.mkDerivation rec {
name = "epoxy-${version}";
2015-08-13 23:00:18 +01:00
version = "1.3.1";
2015-08-13 23:00:18 +01:00
src = fetchFromGitHub {
owner = "anholt";
repo = "libepoxy";
rev = "v${version}";
sha256 = "0dfkd4xbp7v5gwsf6qwaraz54yzizf3lj5ymyc0msjn0adq3j5yl";
};
2015-10-07 21:52:16 +01:00
outputs = [ "dev" "out" ];
2015-08-13 23:00:18 +01:00
nativeBuildInputs = [ autoreconfHook pkgconfig utilmacros python ];
buildInputs = [ mesa libX11 ];
2015-10-27 07:38:00 +00:00
preConfigure = stdenv.lib.optional stdenv.isDarwin ''
substituteInPlace configure --replace build_glx=no build_glx=yes
substituteInPlace src/dispatch_common.h --replace "PLATFORM_HAS_GLX 0" "PLATFORM_HAS_GLX 1"
'';
meta = with stdenv.lib; {
description = "A library for handling OpenGL function pointer management";
homepage = https://github.com/anholt/libepoxy;
license = licenses.mit;
maintainers = [ maintainers.goibhniu ];
2015-05-23 01:04:06 +01:00
platforms = platforms.unix;
};
}