afflib: add darwin build

This commit is contained in:
midchildan 2021-03-27 15:59:33 +09:00
parent c3614f71a2
commit e4186b5e83
No known key found for this signature in database
GPG Key ID: D9A5748BACC6E3C2

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, zlib, curl, expat, fuse, openssl
, autoreconfHook, python3
, autoreconfHook, python3, libiconv
}:
stdenv.mkDerivation rec {
@ -15,7 +15,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ zlib curl expat openssl python3 ]
++ lib.optionals stdenv.isLinux [ fuse ];
++ lib.optionals (with stdenv; isLinux || isDarwin) [ fuse ]
++ lib.optionals stdenv.isDarwin [ libiconv ];
meta = {
homepage = "http://afflib.sourceforge.net/";