graphite2: Add meta.pkgConfigModules
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
, freetype
|
||||
, cmake
|
||||
, static ? stdenv.hostPlatform.isStatic
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
version = "1.3.14";
|
||||
pname = "graphite2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/silnrsi/graphite/releases/download/"
|
||||
+ "${version}/graphite2-${version}.tgz";
|
||||
url = with finalAttrs; "https://github.com/silnrsi/graphite/releases/download/${version}/${pname}-${version}.tgz";
|
||||
sha256 = "1790ajyhk0ax8xxamnrk176gc9gvhadzy78qia4rd8jzm89ir7gr";
|
||||
};
|
||||
|
||||
@@ -46,12 +46,19 @@ stdenv.mkDerivation rec {
|
||||
|
||||
doCheck = true;
|
||||
|
||||
passthru.tests = {
|
||||
pkg-config = testers.hasPkgConfigModules {
|
||||
package = finalAttrs.finalPackage;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "An advanced font engine";
|
||||
homepage = "https://graphite.sil.org/";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = [ maintainers.raskin ];
|
||||
pkgConfigModules = [ "graphite2" ];
|
||||
mainProgram = "gr2fonttest";
|
||||
platforms = platforms.unix ++ platforms.windows;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user