libffi: Add meta.pkgConfigModules
This commit is contained in:
parent
a20c0d5675
commit
d239ca5ca1
1 changed files with 10 additions and 3 deletions
|
@ -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" ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue