ldb: add meta.pkgConfigModules, passthru.tests.pkg-config

This commit is contained in:
Anthony Roussel 2024-04-06 13:25:17 +02:00
parent e3466f56e1
commit 598b8843f5
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E
1 changed files with 9 additions and 3 deletions

View File

@ -13,14 +13,15 @@
, cmocka
, wafHook
, libxcrypt
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "ldb";
version = "2.9.0";
src = fetchurl {
url = "mirror://samba/ldb/${pname}-${version}.tar.gz";
url = "mirror://samba/ldb/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
hash = "sha256-EFqv9xrYgaf661gv1BauKCIbb94zj/+CgoBlBiwlB6U=";
};
@ -70,11 +71,16 @@ stdenv.mkDerivation rec {
stripDebugList = [ "bin" "lib" "modules" ];
passthru.tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
meta = with lib; {
broken = stdenv.isDarwin;
description = "A LDAP-like embedded database";
homepage = "https://ldb.samba.org/";
license = licenses.lgpl3Plus;
pkgConfigModules = [ "ldb" ];
platforms = platforms.all;
};
}
})