darling-dmg: add darwin build

This commit is contained in:
midchildan 2021-03-27 16:07:00 +09:00
parent 651f214fb1
commit 38f7579201
No known key found for this signature in database
GPG Key ID: D9A5748BACC6E3C2

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu, lzfse }:
{ lib, stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu, lzfse, libiconv }:
stdenv.mkDerivation rec {
pname = "darling-dmg";
@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu lzfse ];
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu lzfse ]
++ lib.optionals stdenv.isDarwin [ libiconv ];
CXXFLAGS = [
"-DCOMPILE_WITH_LZFSE=1"
@ -22,8 +23,8 @@ stdenv.mkDerivation rec {
meta = with lib; {
homepage = "https://www.darlinghq.org/";
description = "Darling lets you open macOS dmgs on Linux";
platforms = platforms.linux;
license = licenses.gpl3;
platforms = platforms.unix;
license = licenses.gpl3Only;
maintainers = with maintainers; [ Luflosi ];
};
}