at 24.05-pre 46 lines 1.7 kB view raw
1{ fetchurl, lib, stdenv, libiconv, libunistring, help2man, texinfo, buildPackages }: 2 3# Note: this package is used for bootstrapping fetchurl, and thus 4# cannot use fetchpatch! All mutable patches (generated by GitHub or 5# cgit) that are needed here should be included directly in Nixpkgs as 6# files. 7 8stdenv.mkDerivation rec { 9 pname = "libidn2"; 10 version = "2.3.4"; 11 12 src = fetchurl { 13 url = "https://ftp.gnu.org/gnu/libidn/${pname}-${version}.tar.gz"; 14 sha256 = "sha256-k8q6crTgUdH41PWgdqtjyZt3+u4Bm3K5eDsmeYbbtF8="; 15 }; 16 17 strictDeps = true; 18 # Beware: non-bootstrap libidn2 is overridden by ./hack.nix 19 outputs = [ "bin" "dev" "out" "info" "devdoc" ]; 20 21 enableParallelBuilding = true; 22 23 # The above patch causes the documentation to be regenerated, so the 24 # documentation tools are required. 25 nativeBuildInputs = lib.optionals stdenv.isDarwin [ help2man texinfo ]; 26 buildInputs = [ libunistring ] ++ lib.optional stdenv.isDarwin libiconv; 27 depsBuildBuild = [ buildPackages.stdenv.cc ]; 28 29 meta = { 30 homepage = "https://www.gnu.org/software/libidn/#libidn2"; 31 description = "Free software implementation of IDNA2008 and TR46"; 32 33 longDescription = '' 34 Libidn2 is believed to be a complete IDNA2008 and TR46 implementation, 35 but has yet to be as extensively used as the IDNA2003 Libidn library. 36 37 The installed C library libidn2 is dual-licensed under LGPLv3+|GPLv2+, 38 while the rest of the package is GPLv3+. See the file COPYING for 39 detailed information. 40 ''; 41 42 license = with lib.licenses; [ lgpl3Plus gpl2Plus gpl3Plus ]; 43 platforms = lib.platforms.all; 44 maintainers = with lib.maintainers; [ fpletz ]; 45 }; 46}