diff options
author | Eldritch Cookie <eldritch.cookie@disroot.org> | 2024-01-14 15:24:27 -0300 |
---|---|---|
committer | Rodney Lorrimar <dev@rodney.id.au> | 2024-02-22 13:57:17 +0800 |
commit | bee5bd01061f92c11ef85f2e6cedd7bdeb794318 (patch) | |
tree | 73d4e7b6bc5629bd3cfd86a10623d6867693b04c /pkgs/development/libraries/libxml2 | |
parent | 511914a5fe00c6f4c36c4ce538da5c17dc194cc9 (diff) |
libxml2: add meta.pkgConfigModules and tests.pkg-config
Co-authored-by: Rodney Lorrimar <dev@rodney.id.au>
Diffstat (limited to 'pkgs/development/libraries/libxml2')
-rw-r--r-- | pkgs/development/libraries/libxml2/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index ce7e51c04f482..81ea947279318 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -20,6 +20,7 @@ , enableShared ? !stdenv.hostPlatform.isMinGW && !stdenv.hostPlatform.isStatic , enableStatic ? !enableShared , gnome +, testers }: let @@ -32,7 +33,7 @@ in assert oldVer -> stdenv.isDarwin; # reduce likelihood of using old libxml2 unintentionally let -libxml = stdenv.mkDerivation rec { +libxml = stdenv.mkDerivation (finalAttrs: rec { pname = "libxml2"; version = "2.12.4"; @@ -123,6 +124,11 @@ libxml = stdenv.mkDerivation rec { packageName = pname; versionPolicy = "none"; }; + tests = { + pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + }; + }; }; meta = with lib; { @@ -131,8 +137,9 @@ libxml = stdenv.mkDerivation rec { license = licenses.mit; platforms = platforms.all; maintainers = with maintainers; [ eelco jtojnar ]; + pkgConfigModules = [ "libxml-2.0" ]; }; -}; +}); in if oldVer then libxml.overrideAttrs (attrs: rec { |