9 stdenv.mkDerivation (finalAttrs: {
14 url = "mirror://gnu/libidn/libidn-${finalAttrs.version}.tar.gz";
15 sha256 = "sha256-1sGZ3NgG5P4nk2DLSwg0mg05Vg7VSP/RzK3ajN7LRyM=";
26 hardeningDisable = [ "format" ];
28 buildInputs = lib.optional stdenv.hostPlatform.isDarwin libiconv;
30 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
33 homepage = "https://www.gnu.org/software/libidn/";
34 description = "Library for internationalized domain names";
37 GNU Libidn is a fully documented implementation of the
38 Stringprep, Punycode and IDNA specifications. Libidn's purpose
39 is to encode and decode internationalized domain names. The
40 native C, C\# and Java libraries are available under the GNU
41 Lesser General Public License version 2.1 or later.
43 The library contains a generic Stringprep implementation.
44 Profiles for Nameprep, iSCSI, SASL, XMPP and Kerberos V5 are
45 included. Punycode and ASCII Compatible Encoding (ACE) via IDNA
46 are supported. A mechanism to define Top-Level Domain (TLD)
47 specific validation tables, and to compare strings against those
48 tables, is included. Default tables for some TLDs are also
53 license = lib.licenses.lgpl2Plus;
54 pkgConfigModules = [ "libidn" ];
55 platforms = lib.platforms.all;
56 maintainers = with lib.maintainers; [ lsix ];