Skip to content

Commit

Permalink
xar: fix to work on openssl 1.1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
copumpkin authored and globin committed Jul 29, 2019
1 parent 051061d commit e26a3fd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/tools/compression/xar/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libxml2, lzma, openssl, zlib, bzip2, fts }:
{ stdenv, fetchurl, libxml2, lzma, openssl, zlib, bzip2, fts, autoconf }:

stdenv.mkDerivation rec {
version = "1.6.1";
Expand All @@ -9,7 +9,15 @@ stdenv.mkDerivation rec {
sha256 = "0ghmsbs6xwg1092v7pjcibmk5wkyifwxw6ygp08gfz25d2chhipf";
};

buildInputs = [ libxml2 lzma openssl zlib bzip2 fts ];
buildInputs = [ libxml2 lzma openssl zlib bzip2 fts autoconf ];

prePatch = ''
substituteInPlace configure.ac \
--replace 'OpenSSL_add_all_ciphers' 'OPENSSL_init_crypto' \
--replace 'openssl/evp.h' 'openssl/crypto.h'
'';

preConfigure = "./autogen.sh";

meta = {
homepage = https://mackyle.github.io/xar/;
Expand Down

0 comments on commit e26a3fd

Please sign in to comment.