lol

glew: Add `meta.pkgConfigModules` and test

+14 -6
+7 -3
pkgs/development/libraries/glew/1.10.nix
··· 1 { lib, stdenv, fetchurl, libGLU, libXmu, libXi, libXext 2 , AGL, OpenGL 3 }: 4 5 - stdenv.mkDerivation rec { 6 pname = "glew"; 7 version = "1.10.0"; 8 9 src = fetchurl { 10 - url = "mirror://sourceforge/glew/glew-${version}.tgz"; 11 sha256 = "01zki46dr5khzlyywr3cg615bcal32dazfazkf360s1znqh17i4r"; 12 }; 13 ··· 41 "SYSTEM=${if stdenv.hostPlatform.isMinGW then "mingw" else stdenv.hostPlatform.parsed.kernel.name}" 42 ]; 43 44 meta = with lib; { 45 description = "An OpenGL extension loading library for C(++)"; 46 homepage = "https://glew.sourceforge.net/"; 47 license = licenses.free; # different files under different licenses 48 #["BSD" "GLX" "SGI-B" "GPL2"] 49 platforms = platforms.mesaPlatforms; 50 }; 51 - }
··· 1 { lib, stdenv, fetchurl, libGLU, libXmu, libXi, libXext 2 , AGL, OpenGL 3 + , testers 4 }: 5 6 + stdenv.mkDerivation (finalAttrs: { 7 pname = "glew"; 8 version = "1.10.0"; 9 10 src = fetchurl { 11 + url = "mirror://sourceforge/glew/${finalAttrs.pname}-${finalAttrs.version}.tgz"; 12 sha256 = "01zki46dr5khzlyywr3cg615bcal32dazfazkf360s1znqh17i4r"; 13 }; 14 ··· 42 "SYSTEM=${if stdenv.hostPlatform.isMinGW then "mingw" else stdenv.hostPlatform.parsed.kernel.name}" 43 ]; 44 45 + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 46 + 47 meta = with lib; { 48 description = "An OpenGL extension loading library for C(++)"; 49 homepage = "https://glew.sourceforge.net/"; 50 license = licenses.free; # different files under different licenses 51 #["BSD" "GLX" "SGI-B" "GPL2"] 52 + pkgConfigModules = [ "glew" ]; 53 platforms = platforms.mesaPlatforms; 54 }; 55 + })
+7 -3
pkgs/development/libraries/glew/default.nix
··· 1 { lib, stdenv, fetchurl, fetchpatch, cmake, libGLU, libXmu, libXi, libXext 2 , OpenGL 3 , enableEGL ? false 4 }: 5 6 - stdenv.mkDerivation rec { 7 pname = "glew"; 8 version = "2.2.0"; 9 10 src = fetchurl { 11 - url = "mirror://sourceforge/glew/${pname}-${version}.tgz"; 12 sha256 = "1qak8f7g1iswgswrgkzc7idk7jmqgwrs58fhg2ai007v7j4q5z6l"; 13 }; 14 ··· 44 EOF 45 ''; 46 47 meta = with lib; { 48 description = "An OpenGL extension loading library for C/C++"; 49 homepage = "https://glew.sourceforge.net/"; 50 license = with licenses; [ /* modified bsd */ free mit gpl2Only ]; # For full details, see https://github.com/nigels-com/glew#copyright-and-licensing 51 platforms = with platforms; 52 if enableEGL then 53 subtractLists darwin mesaPlatforms 54 else 55 mesaPlatforms; 56 }; 57 - }
··· 1 { lib, stdenv, fetchurl, fetchpatch, cmake, libGLU, libXmu, libXi, libXext 2 , OpenGL 3 , enableEGL ? false 4 + , testers 5 }: 6 7 + stdenv.mkDerivation (finalAttrs: { 8 pname = "glew"; 9 version = "2.2.0"; 10 11 src = fetchurl { 12 + url = "mirror://sourceforge/glew/${finalAttrs.pname}-${finalAttrs.version}.tgz"; 13 sha256 = "1qak8f7g1iswgswrgkzc7idk7jmqgwrs58fhg2ai007v7j4q5z6l"; 14 }; 15 ··· 45 EOF 46 ''; 47 48 + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 49 + 50 meta = with lib; { 51 description = "An OpenGL extension loading library for C/C++"; 52 homepage = "https://glew.sourceforge.net/"; 53 license = with licenses; [ /* modified bsd */ free mit gpl2Only ]; # For full details, see https://github.com/nigels-com/glew#copyright-and-licensing 54 + pkgConfigModules = [ "glew" ]; 55 platforms = with platforms; 56 if enableEGL then 57 subtractLists darwin mesaPlatforms 58 else 59 mesaPlatforms; 60 }; 61 + })