summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-11-05 16:48:41 +0100
committersternenseemann <sternenseemann@systemli.org>2023-11-05 16:48:41 +0100
commit73c05bde44613703e901c835132dadec3efe38b4 (patch)
tree0204eaa4139ebc025d3a5fc90c867a962e337f6c
parent0ee702c43936f4fb169b53916b3f3251ffcc5441 (diff)
downloadnixpkgs-73c05bde44613703e901c835132dadec3efe38b4.tar
nixpkgs-73c05bde44613703e901c835132dadec3efe38b4.tar.gz
nixpkgs-73c05bde44613703e901c835132dadec3efe38b4.tar.bz2
nixpkgs-73c05bde44613703e901c835132dadec3efe38b4.tar.lz
nixpkgs-73c05bde44613703e901c835132dadec3efe38b4.tar.xz
nixpkgs-73c05bde44613703e901c835132dadec3efe38b4.tar.zst
nixpkgs-73c05bde44613703e901c835132dadec3efe38b4.zip
harfbuzz: record provided pkg-config modules in meta
This is verified using testers.hasPkgConfigModules which leads to a
slight refactor of the expression.
-rw-r--r--pkgs/development/libraries/harfbuzz/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/development/libraries/harfbuzz/default.nix b/pkgs/development/libraries/harfbuzz/default.nix
index b1e09f7b82e..88f373dd4af 100644
--- a/pkgs/development/libraries/harfbuzz/default.nix
+++ b/pkgs/development/libraries/harfbuzz/default.nix
@@ -30,14 +30,15 @@
 , gtk4
 , mapnik
 , qt5
+, testers
 }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (finalAttrs: {
   pname = "harfbuzz${lib.optionalString withIcu "-icu"}";
   version = "7.3.0";
 
   src = fetchurl {
-    url = "https://github.com/harfbuzz/harfbuzz/releases/download/${version}/harfbuzz-${version}.tar.xz";
+    url = "https://github.com/harfbuzz/harfbuzz/releases/download/${finalAttrs.version}/harfbuzz-${finalAttrs.version}.tar.xz";
     hash = "sha256-IHcHiXSaybqEbfM5g9vaItuDbHDZ9dBQy5qlNHCUqPs=";
   };
 
@@ -103,6 +104,9 @@ stdenv.mkDerivation rec {
   passthru.tests = {
     inherit gimp gtk3 gtk4 mapnik;
     inherit (qt5) qtbase;
+    pkg-config = testers.hasPkgConfigModules {
+      package = finalAttrs.finalPackage;
+    };
   };
 
   meta = with lib; {
@@ -112,5 +116,10 @@ stdenv.mkDerivation rec {
     maintainers = [ maintainers.eelco ];
     license = licenses.mit;
     platforms = platforms.unix;
+    pkgConfigModules = [
+      "harfbuzz"
+      "harfbuzz-gobject"
+      "harfbuzz-subset"
+    ];
   };
-}
+})