summary refs log tree commit diff
path: root/pkgs/tools/text/xidel/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-09-29 00:19:10 +0000
committerAlyssa Ross <hi@alyssa.is>2021-10-05 18:21:05 +0000
commitf31d4de37b81657b417f0ccea6f9d7c0b79d8fd9 (patch)
tree70e247cdafe858a3cd2e05d444d87dc3c5d064dc /pkgs/tools/text/xidel/default.nix
parentb256715457b6078d729c64bf91596f808a67e28e (diff)
downloadnixpkgs-f31d4de37b81657b417f0ccea6f9d7c0b79d8fd9.tar
nixpkgs-f31d4de37b81657b417f0ccea6f9d7c0b79d8fd9.tar.gz
nixpkgs-f31d4de37b81657b417f0ccea6f9d7c0b79d8fd9.tar.bz2
nixpkgs-f31d4de37b81657b417f0ccea6f9d7c0b79d8fd9.tar.lz
nixpkgs-f31d4de37b81657b417f0ccea6f9d7c0b79d8fd9.tar.xz
nixpkgs-f31d4de37b81657b417f0ccea6f9d7c0b79d8fd9.tar.zst
nixpkgs-f31d4de37b81657b417f0ccea6f9d7c0b79d8fd9.zip
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.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/text/xidel/default.nix b/pkgs/tools/text/xidel/default.nix
index 97c74e37008..9865c302f98 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 \