libffi: Add meta.pkgConfigModules

This commit is contained in:
Rodney Lorrimar 2024-02-09 21:13:38 +08:00
parent a20c0d5675
commit d239ca5ca1
No known key found for this signature in database
GPG key ID: D8B75C95FB4D1143

View file

@ -6,14 +6,15 @@
, doCheck ? !(stdenv.hostPlatform.isStatic) , doCheck ? !(stdenv.hostPlatform.isStatic)
, dejagnu , dejagnu
, nix-update-script , nix-update-script
, testers
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "libffi"; pname = "libffi";
version = "3.4.4"; version = "3.4.4";
src = fetchurl { src = fetchurl {
url = "https://github.com/libffi/libffi/releases/download/v${version}/${pname}-${version}.tar.gz"; url = with finalAttrs; "https://github.com/libffi/libffi/releases/download/v${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-1mxWrSWags8qnfxAizK/XaUjcVALhHRff7i2RXEt9nY="; sha256 = "sha256-1mxWrSWags8qnfxAizK/XaUjcVALhHRff7i2RXEt9nY=";
}; };
@ -53,6 +54,11 @@ stdenv.mkDerivation rec {
passthru = { passthru = {
updateScript = nix-update-script { }; updateScript = nix-update-script { };
tests = {
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
};
}; };
meta = with lib; { meta = with lib; {
@ -75,5 +81,6 @@ stdenv.mkDerivation rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ matthewbauer ]; maintainers = with maintainers; [ matthewbauer ];
platforms = platforms.all; platforms = platforms.all;
pkgConfigModules = [ "libffi" ];
}; };
} })