libidn: Add meta.pkgConfigModules
and test
This commit is contained in:
parent
a76390f69c
commit
bda5a3e229
1 changed files with 9 additions and 4 deletions
|
@ -1,11 +1,13 @@
|
|||
{ fetchurl, lib, stdenv, libiconv }:
|
||||
{ fetchurl, lib, stdenv, libiconv
|
||||
, testers
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libidn";
|
||||
version = "1.41";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/libidn/${pname}-${version}.tar.gz";
|
||||
url = "mirror://gnu/libidn/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
||||
sha256 = "sha256-iE1wY2S4Gr3Re+6Whtj/KudDHFoUZRBHxorfizH9iUU=";
|
||||
};
|
||||
|
||||
|
@ -15,6 +17,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
||||
|
||||
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
||||
|
||||
meta = {
|
||||
homepage = "https://www.gnu.org/software/libidn/";
|
||||
description = "Library for internationalized domain names";
|
||||
|
@ -36,7 +40,8 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
license = lib.licenses.lgpl2Plus;
|
||||
pkgConfigModules = [ "libidn" ];
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ lsix ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue