mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 14:34:33 +00:00
wlroots: populate meta.pkgConfigModules
This commit is contained in:
parent
4154308ab8
commit
43e0b0d1be
@ -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}")
|
||||
];
|
||||
};
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user