at 18.03-beta 33 lines 993 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, utilmacros, python 2, libGLU_combined, libX11 3}: 4 5stdenv.mkDerivation rec { 6 name = "epoxy-${version}"; 7 version = "1.3.1"; 8 9 src = fetchFromGitHub { 10 owner = "anholt"; 11 repo = "libepoxy"; 12 rev = "v${version}"; 13 sha256 = "0dfkd4xbp7v5gwsf6qwaraz54yzizf3lj5ymyc0msjn0adq3j5yl"; 14 }; 15 16 outputs = [ "out" "dev" ]; 17 18 nativeBuildInputs = [ autoreconfHook pkgconfig utilmacros python ]; 19 buildInputs = [ libGLU_combined libX11 ]; 20 21 preConfigure = stdenv.lib.optional stdenv.isDarwin '' 22 substituteInPlace configure --replace build_glx=no build_glx=yes 23 substituteInPlace src/dispatch_common.h --replace "PLATFORM_HAS_GLX 0" "PLATFORM_HAS_GLX 1" 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "A library for handling OpenGL function pointer management"; 28 homepage = https://github.com/anholt/libepoxy; 29 license = licenses.mit; 30 maintainers = [ maintainers.goibhniu ]; 31 platforms = platforms.unix; 32 }; 33}