libsodium: Add meta.pkgConfigModules
and test
This commit is contained in:
parent
50f26bcb1b
commit
9856006976
|
@ -1,11 +1,13 @@
|
||||||
{ lib, stdenv, fetchurl, autoreconfHook }:
|
{ lib, stdenv, fetchurl, autoreconfHook
|
||||||
|
, testers
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "libsodium";
|
pname = "libsodium";
|
||||||
version = "1.0.18";
|
version = "1.0.18";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://download.libsodium.org/libsodium/releases/${pname}-${version}.tar.gz";
|
url = "https://download.libsodium.org/libsodium/releases/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "1h9ncvj23qbbni958knzsli8dvybcswcjbx0qjjgi922nf848l3g";
|
sha256 = "1h9ncvj23qbbni958knzsli8dvybcswcjbx0qjjgi922nf848l3g";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -26,11 +28,14 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A modern and easy-to-use crypto library";
|
description = "A modern and easy-to-use crypto library";
|
||||||
homepage = "http://doc.libsodium.org/";
|
homepage = "http://doc.libsodium.org/";
|
||||||
license = licenses.isc;
|
license = licenses.isc;
|
||||||
maintainers = with maintainers; [ raskin ];
|
maintainers = with maintainers; [ raskin ];
|
||||||
|
pkgConfigModules = [ "libsodium" ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue