2018-03-09 20:22:18 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, cmake, fuse, zlib, bzip2, openssl, libxml2, icu } :
|
2015-12-08 23:02:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "darling-dmg-${version}";
|
2016-02-02 20:05:44 +00:00
|
|
|
version = "1.0.4";
|
|
|
|
|
2015-12-08 23:02:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darlinghq";
|
|
|
|
repo = "darling-dmg";
|
2016-02-02 20:05:44 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0x285p16zfnp0p6injw1frc8krif748sfgxhdd7gb75kz0dfbkrk";
|
2015-12-08 23:02:59 +00:00
|
|
|
};
|
2016-02-02 20:05:44 +00:00
|
|
|
|
2018-03-09 20:22:18 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/darlinghq/darling-dmg/commit/cbb0092264b5c5cf3e92d6c2de23f02d859ebf44.patch";
|
|
|
|
sha256 = "05fhgn5c09f1rva6bvbq16nhlkblrhscbf69k04ajwdh7y98sw39";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-12-08 23:02:59 +00:00
|
|
|
buildInputs = [ cmake fuse openssl zlib bzip2 libxml2 icu ];
|
2016-02-02 20:05:44 +00:00
|
|
|
|
2019-06-05 22:16:23 +01:00
|
|
|
# compat with icu61+ https://github.com/unicode-org/icu/blob/release-64-2/icu4c/readme.html#L554
|
|
|
|
CXXFLAGS = [ "-DU_USING_ICU_NAMESPACE=1" ];
|
|
|
|
|
2015-12-08 23:02:59 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.darlinghq.org/;
|
2017-08-06 23:05:18 +01:00
|
|
|
description = "Darling lets you open macOS dmgs on Linux";
|
2015-12-08 23:02:59 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|