fontconfig: Add meta.pkgConfigModules

+11 -3
+11 -3
pkgs/development/libraries/fontconfig/default.nix
··· 10 10 , dejavu_fonts 11 11 , autoreconfHook 12 12 , CoreFoundation 13 + , testers 13 14 }: 14 15 15 - stdenv.mkDerivation rec { 16 + stdenv.mkDerivation (finalAttrs: { 16 17 pname = "fontconfig"; 17 18 version = "2.15.0"; 18 19 19 20 outputs = [ "bin" "dev" "lib" "out" ]; # $out contains all the config 20 21 21 22 src = fetchurl { 22 - url = "https://www.freedesktop.org/software/fontconfig/release/${pname}-${version}.tar.xz"; 23 + url = with finalAttrs; "https://www.freedesktop.org/software/fontconfig/release/${pname}-${version}.tar.xz"; 23 24 hash = "sha256-Y6BljQ4G4PqIYQZFK1jvBPIfWCAuoCqUw53g0zNdfA4="; 24 25 }; 25 26 ··· 77 78 rm -r $bin/share/man/man3 78 79 ''; 79 80 81 + passthru.tests = { 82 + pkg-config = testers.hasPkgConfigModules { 83 + package = finalAttrs.finalPackage; 84 + }; 85 + }; 86 + 80 87 meta = with lib; { 81 88 description = "A library for font customization and configuration"; 82 89 homepage = "http://fontconfig.org/"; 83 90 license = licenses.bsd2; # custom but very bsd-like 84 91 platforms = platforms.all; 85 92 maintainers = with maintainers; teams.freedesktop.members ++ [ ]; 93 + pkgConfigModules = [ "fontconfig" ]; 86 94 }; 87 - } 95 + })