From 8ef1ecd44a6b104c929bc498708042aa7ad6b5bc Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 4 Jul 2023 00:28:02 +0200 Subject: [PATCH] xercesc: Use curl network backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default `socket` backend does not support TLS. As a result, attempting to validate the following GPX file with `SAX2Count -v=always foo.gpx` would fail with `unsupported protocol in URL` because the Garmin URLs redirect to HTTPS. Let’s switch to curl backend. --- pkgs/development/libraries/xercesc/default.nix | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/xercesc/default.nix b/pkgs/development/libraries/xercesc/default.nix index c7509bc43ab..0a254b10958 100644 --- a/pkgs/development/libraries/xercesc/default.nix +++ b/pkgs/development/libraries/xercesc/default.nix @@ -1,4 +1,8 @@ -{ lib, stdenv, fetchurl }: +{ stdenv +, lib +, fetchurl +, curl +}: stdenv.mkDerivation rec { pname = "xerces-c"; @@ -9,8 +13,16 @@ stdenv.mkDerivation rec { sha256 = "sha256-PY7Bx/lOOP7g5Mpa0eHZ2yPL86ELumJva0r6Le2v5as="; }; - # Disable SSE2 extensions on platforms for which they are not enabled by default - configureFlags = [ "--disable-sse2" ]; + buildInputs = [ + curl + ]; + + configureFlags = [ + # Disable SSE2 extensions on platforms for which they are not enabled by default + "--disable-sse2" + "--enable-netaccessor-curl" + ]; + enableParallelBuilding = true; meta = {