libewf: Add bzip2 dependency for darwin

This is part of the series to support radare2 on darwin platforms.

When built from sources on darwin platforms, libewf fails as it depends
on lbz2.
This commit is contained in:
Vikram Narayanan 2021-11-11 11:25:49 -08:00
parent 4d19b372ff
commit 4d25878cd2

View file

@ -1,4 +1,4 @@
{ fetchurl, lib, stdenv, zlib, openssl, libuuid, pkg-config }:
{ fetchurl, lib, stdenv, zlib, openssl, libuuid, pkg-config, bzip2 }:
stdenv.mkDerivation rec {
version = "20201230";
@ -10,7 +10,8 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ zlib openssl libuuid ];
buildInputs = [ zlib openssl libuuid ]
++ lib.optionals stdenv.isDarwin [ bzip2 ];
meta = {
description = "Library for support of the Expert Witness Compression Format";