Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 42 lines 1.4 kB view raw
1{ fetchurl, lib, stdenv, libiconv }: 2 3stdenv.mkDerivation rec { 4 pname = "libidn"; 5 version = "1.41"; 6 7 src = fetchurl { 8 url = "mirror://gnu/libidn/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-iE1wY2S4Gr3Re+6Whtj/KudDHFoUZRBHxorfizH9iUU="; 10 }; 11 12 outputs = [ "bin" "dev" "out" "info" "devdoc" ]; 13 14 hardeningDisable = [ "format" ]; 15 16 buildInputs = lib.optional stdenv.isDarwin libiconv; 17 18 meta = { 19 homepage = "https://www.gnu.org/software/libidn/"; 20 description = "Library for internationalized domain names"; 21 22 longDescription = '' 23 GNU Libidn is a fully documented implementation of the 24 Stringprep, Punycode and IDNA specifications. Libidn's purpose 25 is to encode and decode internationalized domain names. The 26 native C, C\# and Java libraries are available under the GNU 27 Lesser General Public License version 2.1 or later. 28 29 The library contains a generic Stringprep implementation. 30 Profiles for Nameprep, iSCSI, SASL, XMPP and Kerberos V5 are 31 included. Punycode and ASCII Compatible Encoding (ACE) via IDNA 32 are supported. A mechanism to define Top-Level Domain (TLD) 33 specific validation tables, and to compare strings against those 34 tables, is included. Default tables for some TLDs are also 35 included. 36 ''; 37 38 license = lib.licenses.lgpl2Plus; 39 platforms = lib.platforms.all; 40 maintainers = with lib.maintainers; [ lsix ]; 41 }; 42}