mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
fontconfig: Add meta.pkgConfigModules
This commit is contained in:
parent
c5a228e1b1
commit
6b3baaf8d6
@ -10,16 +10,17 @@
|
|||||||
, dejavu_fonts
|
, dejavu_fonts
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, CoreFoundation
|
, CoreFoundation
|
||||||
|
, testers
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "fontconfig";
|
pname = "fontconfig";
|
||||||
version = "2.15.0";
|
version = "2.15.0";
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "lib" "out" ]; # $out contains all the config
|
outputs = [ "bin" "dev" "lib" "out" ]; # $out contains all the config
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.freedesktop.org/software/fontconfig/release/${pname}-${version}.tar.xz";
|
url = with finalAttrs; "https://www.freedesktop.org/software/fontconfig/release/${pname}-${version}.tar.xz";
|
||||||
hash = "sha256-Y6BljQ4G4PqIYQZFK1jvBPIfWCAuoCqUw53g0zNdfA4=";
|
hash = "sha256-Y6BljQ4G4PqIYQZFK1jvBPIfWCAuoCqUw53g0zNdfA4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -77,11 +78,18 @@ stdenv.mkDerivation rec {
|
|||||||
rm -r $bin/share/man/man3
|
rm -r $bin/share/man/man3
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
pkg-config = testers.hasPkgConfigModules {
|
||||||
|
package = finalAttrs.finalPackage;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library for font customization and configuration";
|
description = "A library for font customization and configuration";
|
||||||
homepage = "http://fontconfig.org/";
|
homepage = "http://fontconfig.org/";
|
||||||
license = licenses.bsd2; # custom but very bsd-like
|
license = licenses.bsd2; # custom but very bsd-like
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; teams.freedesktop.members ++ [ ];
|
maintainers = with maintainers; teams.freedesktop.members ++ [ ];
|
||||||
|
pkgConfigModules = [ "fontconfig" ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user