nixpkgs/pkgs/tools/filesystems/darling-dmg/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
886 B
Nix
Raw Normal View History

2021-03-27 07:07:00 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu, lzfse, libiconv }:
2015-12-08 23:02:59 +00:00
stdenv.mkDerivation rec {
pname = "darling-dmg";
version = "1.0.4+git20200427";
2015-12-08 23:02:59 +00:00
src = fetchFromGitHub {
owner = "darlinghq";
repo = "darling-dmg";
rev = "71cc76c792db30328663272788c0b64aca27fdb0";
sha256 = "08iphkxlmjddrxpbm13gxyqwcrd0k65z3l1944n4pccb6qbyj8gv";
2015-12-08 23:02:59 +00:00
};
nativeBuildInputs = [ cmake ];
2021-03-27 07:07:00 +00:00
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu lzfse ]
++ lib.optionals stdenv.isDarwin [ libiconv ];
CXXFLAGS = [
"-DCOMPILE_WITH_LZFSE=1"
"-llzfse"
];
meta = with lib; {
homepage = "https://www.darlinghq.org/";
description = "Darling lets you open macOS dmgs on Linux";
mainProgram = "darling-dmg";
2021-03-27 07:07:00 +00:00
platforms = platforms.unix;
license = licenses.gpl3Only;
2020-10-25 09:04:26 +00:00
maintainers = with maintainers; [ Luflosi ];
2015-12-08 23:02:59 +00:00
};
}