diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-09-29 00:19:10 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-10-05 18:21:05 +0000 |
commit | f31d4de37b81657b417f0ccea6f9d7c0b79d8fd9 (patch) | |
tree | 70e247cdafe858a3cd2e05d444d87dc3c5d064dc /pkgs/tools/text/xidel/default.nix | |
parent | b256715457b6078d729c64bf91596f808a67e28e (diff) |
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"
Diffstat (limited to 'pkgs/tools/text/xidel/default.nix')
-rw-r--r-- | pkgs/tools/text/xidel/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/text/xidel/default.nix b/pkgs/tools/text/xidel/default.nix index 97c74e3700894..9865c302f985c 100644 --- a/pkgs/tools/text/xidel/default.nix +++ b/pkgs/tools/text/xidel/default.nix @@ -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 \ |