diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libidn2')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libidn2/default.nix | 14 | ||||
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libidn2/fix-error-darwin.patch | 20 |
2 files changed, 5 insertions, 29 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libidn2/default.nix b/nixpkgs/pkgs/development/libraries/libidn2/default.nix index 724778999f5f..0782f94f41e5 100644 --- a/nixpkgs/pkgs/development/libraries/libidn2/default.nix +++ b/nixpkgs/pkgs/development/libraries/libidn2/default.nix @@ -5,29 +5,25 @@ # cgit) that are needed here should be included directly in Nixpkgs as # files. -with lib; - stdenv.mkDerivation rec { pname = "libidn2"; - version = "2.3.2"; + version = "2.3.4"; src = fetchurl { - url = "mirror://gnu/gnu/libidn/${pname}-${version}.tar.gz"; - sha256 = "sha256-dpQM1Od46Ak1eanRlbJf/16Tbp3GJCBoUotDenZ2T5E="; + url = "https://ftp.gnu.org/gnu/libidn/${pname}-${version}.tar.gz"; + sha256 = "sha256-k8q6crTgUdH41PWgdqtjyZt3+u4Bm3K5eDsmeYbbtF8="; }; strictDeps = true; # Beware: non-bootstrap libidn2 is overridden by ./hack.nix outputs = [ "bin" "dev" "out" "info" "devdoc" ]; - patches = optional stdenv.isDarwin ./fix-error-darwin.patch; - enableParallelBuilding = true; # The above patch causes the documentation to be regenerated, so the # documentation tools are required. - nativeBuildInputs = optionals stdenv.isDarwin [ help2man texinfo ]; - buildInputs = [ libunistring ] ++ optional stdenv.isDarwin libiconv; + nativeBuildInputs = lib.optionals stdenv.isDarwin [ help2man texinfo ]; + buildInputs = [ libunistring ] ++ lib.optional stdenv.isDarwin libiconv; depsBuildBuild = [ buildPackages.stdenv.cc ]; meta = { diff --git a/nixpkgs/pkgs/development/libraries/libidn2/fix-error-darwin.patch b/nixpkgs/pkgs/development/libraries/libidn2/fix-error-darwin.patch deleted file mode 100644 index e2202abd947c..000000000000 --- a/nixpkgs/pkgs/development/libraries/libidn2/fix-error-darwin.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/src/idn2.c b/src/idn2.c -index 6abbc72..804f0f2 100644 ---- a/src/idn2.c -+++ b/src/idn2.c -@@ -31,7 +31,6 @@ - #include <unistr.h> - - /* Gnulib headers. */ --#include "error.h" - #include "gettext.h" - #define _(String) dgettext (PACKAGE, String) - #include "progname.h" -@@ -222,7 +219,7 @@ main (int argc, char *argv[]) - } - - if (ferror (stdin)) -- error (EXIT_FAILURE, errno, "%s", _("input error")); -+ perror (_("input error")); - - cmdline_parser_free (&args_info); |