2023-10-19 13:55:26 +00:00
|
|
|
{ fetchurl, lib, stdenv, libiconv
|
|
|
|
, testers
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "libidn";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.42";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-19 13:55:26 +00:00
|
|
|
url = "mirror://gnu/libidn/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-1sGZ3NgG5P4nk2DLSwg0mg05Vg7VSP/RzK3ajN7LRyM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "info" "devdoc" ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://www.gnu.org/software/libidn/";
|
|
|
|
description = "Library for internationalized domain names";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU Libidn is a fully documented implementation of the
|
|
|
|
Stringprep, Punycode and IDNA specifications. Libidn's purpose
|
|
|
|
is to encode and decode internationalized domain names. The
|
|
|
|
native C, C\# and Java libraries are available under the GNU
|
|
|
|
Lesser General Public License version 2.1 or later.
|
|
|
|
|
|
|
|
The library contains a generic Stringprep implementation.
|
|
|
|
Profiles for Nameprep, iSCSI, SASL, XMPP and Kerberos V5 are
|
|
|
|
included. Punycode and ASCII Compatible Encoding (ACE) via IDNA
|
|
|
|
are supported. A mechanism to define Top-Level Domain (TLD)
|
|
|
|
specific validation tables, and to compare strings against those
|
|
|
|
tables, is included. Default tables for some TLDs are also
|
|
|
|
included.
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2023-10-19 13:55:26 +00:00
|
|
|
pkgConfigModules = [ "libidn" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with lib.maintainers; [ lsix ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-19 13:55:26 +00:00
|
|
|
})
|