xidel: add TLS support

Without this, it would try to find libcrypto in libc's prefix, and
then fail with this message:

	Error:
	Internet Error: -2 Couldn't load ssl libraries: libopenssl and libcrypto
	They must be installed separately.
	  On Debian/Ubuntu install libssl-dev.
	  On Fedora/CentOS install openssl-devel.
	  On Windows install OpenSSL from https://slproweb.com/products/Win32OpenSSL.html
	when talking to: https://archive.mozilla.org/pub/firefox/releases/

Tested with

       xidel -s https://archive.mozilla.org/pub/firefox/releases/ --extract "//a"
This commit is contained in:
Alyssa Ross 2021-09-29 00:19:10 +00:00
parent b256715457
commit f31d4de37b
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchsvn, fetchFromGitHub, fpc }:
{ lib, stdenv, fetchsvn, fetchFromGitHub, fpc, openssl }:
let
flreSrc = fetchFromGitHub {
@ -36,6 +36,9 @@ in stdenv.mkDerivation rec {
};
nativeBuildInputs = [ fpc ];
buildInputs = [ openssl ];
NIX_LDFLAGS = [ "-lcrypto" ];
patchPhase = ''
patchShebangs \