freetype: Add meta.pkgConfigModules and test
This commit is contained in:
@@ -22,14 +22,15 @@
|
|||||||
, qt5
|
, qt5
|
||||||
, texmacs
|
, texmacs
|
||||||
, ttfautohint
|
, ttfautohint
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "freetype";
|
pname = "freetype";
|
||||||
version = "2.12.1";
|
version = "2.12.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = let inherit (finalAttrs) pname version; in fetchurl {
|
||||||
url = "mirror://savannah/${pname}/${pname}-${version}.tar.xz";
|
url = "mirror://savannah/${pname}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "sha256-R2byAVfMTPDNKS+Av5F/ktHEObJDrDAY3r9rkUDEGn8=";
|
sha256 = "sha256-R2byAVfMTPDNKS+Av5F/ktHEObJDrDAY3r9rkUDEGn8=";
|
||||||
};
|
};
|
||||||
@@ -82,6 +83,7 @@ stdenv.mkDerivation rec {
|
|||||||
ttfautohint;
|
ttfautohint;
|
||||||
inherit (python3.pkgs) freetype-py;
|
inherit (python3.pkgs) freetype-py;
|
||||||
inherit (qt5) qtbase;
|
inherit (qt5) qtbase;
|
||||||
|
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@@ -96,6 +98,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = "https://www.freetype.org/";
|
homepage = "https://www.freetype.org/";
|
||||||
license = licenses.gpl2Plus; # or the FreeType License (BSD + advertising clause)
|
license = licenses.gpl2Plus; # or the FreeType License (BSD + advertising clause)
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
pkgConfigModules = [ "freetype2" ];
|
||||||
maintainers = with maintainers; [ ttuegel ];
|
maintainers = with maintainers; [ ttuegel ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user