darling-dmg: add darwin build
This commit is contained in:
parent
651f214fb1
commit
38f7579201
|
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "darling-dmg";
|
pname = "darling-dmg";
|
||||||
|
@ -12,7 +12,8 @@ stdenv.mkDerivation rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu lzfse ];
|
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu lzfse ]
|
||||||
|
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
||||||
|
|
||||||
CXXFLAGS = [
|
CXXFLAGS = [
|
||||||
"-DCOMPILE_WITH_LZFSE=1"
|
"-DCOMPILE_WITH_LZFSE=1"
|
||||||
|
@ -22,8 +23,8 @@ stdenv.mkDerivation rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://www.darlinghq.org/";
|
homepage = "https://www.darlinghq.org/";
|
||||||
description = "Darling lets you open macOS dmgs on Linux";
|
description = "Darling lets you open macOS dmgs on Linux";
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers; [ Luflosi ];
|
maintainers = with maintainers; [ Luflosi ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue