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 committed Oct 29, 2017
1 parent 9914de7 commit 5791eff
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/tools/compression/xar/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libxml2, openssl, zlib, bzip2 }:
{ stdenv, fetchurl, libxml2, openssl, zlib, bzip2, autoconf }:

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

buildInputs = [ libxml2 openssl zlib bzip2 ];
buildInputs = [ libxml2 openssl zlib bzip2 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 5791eff

Please sign in to comment.