From 43e0b0d1bed337243512a4f018226e4309002203 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 19 Feb 2024 18:47:02 +0100 Subject: [PATCH] wlroots: populate meta.pkgConfigModules --- pkgs/development/libraries/wlroots/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/wlroots/default.nix b/pkgs/development/libraries/wlroots/default.nix index 236865bae163..9a8d0b299f19 100644 --- a/pkgs/development/libraries/wlroots/default.nix +++ b/pkgs/development/libraries/wlroots/default.nix @@ -24,6 +24,7 @@ , libdisplay-info , lcms2 , nixosTests +, testers , enableXWayland ? true , xwayland ? null @@ -94,7 +95,12 @@ let ''; # Test via TinyWL (the "minimum viable product" Wayland compositor based on wlroots): - passthru.tests.tinywl = nixosTests.tinywl; + passthru.tests = { + tinywl = nixosTests.tinywl; + pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + }; + }; meta = { description = "Modular Wayland compositor library"; @@ -107,6 +113,11 @@ let license = lib.licenses.mit; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ primeos synthetica rewine ]; + pkgConfigModules = [ + (if lib.versionOlder finalAttrs.version "0.18" + then "wlroots" + else "wlroots-${lib.versions.majorMinor finalAttrs.version}") + ]; }; });