darling-dmg: enable LZFSE support

This allows decompressing DMGs which are compressed with LZFSE.
This commit is contained in:
Luflosi 2020-10-25 10:03:38 +01:00
parent 3d38fae90d
commit 9dbf2d600a
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu } :
{ stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu, lzfse }:
stdenv.mkDerivation rec {
pname = "darling-dmg";
@ -12,8 +12,12 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu ];
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu lzfse ];
CXXFLAGS = [
"-DCOMPILE_WITH_LZFSE=1"
"-llzfse"
];
meta = with stdenv.lib; {
homepage = "https://www.darlinghq.org/";