Merge pull request #101637 from Luflosi/update/darling-dmg

This commit is contained in:
Sandro 2020-11-27 00:37:01 +01:00 committed by GitHub
commit e3382c54ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,29 @@
{ stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu } : { stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu, lzfse }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "darling-dmg"; pname = "darling-dmg";
version = "1.0.4+git20180914"; version = "1.0.4+git20200427";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "darlinghq"; owner = "darlinghq";
repo = "darling-dmg"; repo = "darling-dmg";
rev = "97a92a6930e43cdbc9dedaee62716e3223deb027"; rev = "71cc76c792db30328663272788c0b64aca27fdb0";
sha256 = "1bngr4827qnl4s2f7z39wjp13nfm3zzzykjshb43wvjz536bnqdj"; sha256 = "08iphkxlmjddrxpbm13gxyqwcrd0k65z3l1944n4pccb6qbyj8gv";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu ]; buildInputs = [ fuse openssl zlib bzip2 libxml2 icu lzfse ];
# compat with icu61+ https://github.com/unicode-org/icu/blob/release-64-2/icu4c/readme.html#L554 CXXFLAGS = [
CXXFLAGS = [ "-DU_USING_ICU_NAMESPACE=1" ]; "-DCOMPILE_WITH_LZFSE=1"
"-llzfse"
];
meta = { meta = with stdenv.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 = stdenv.lib.platforms.linux; platforms = platforms.linux;
license = stdenv.lib.licenses.gpl3; license = licenses.gpl3;
maintainers = with maintainers; [ Luflosi ];
}; };
} }