2024-07-01 22:42:50 +03:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu, lzfse, libiconv
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2015-12-09 02:02:59 +03:00
|
|
|
|
2024-07-01 17:44:09 +03:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "darling-dmg";
|
2024-07-01 17:44:09 +03:00
|
|
|
version = "1.0.4-unstable-2023-07-26";
|
2016-02-02 23:05:44 +03:00
|
|
|
|
2015-12-09 02:02:59 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darlinghq";
|
|
|
|
repo = "darling-dmg";
|
2024-07-01 17:44:09 +03:00
|
|
|
rev = "a36bf0c07b16675b446377890c5f6f74563f84dd";
|
|
|
|
hash = "sha256-QM75GuFHl2gRlRw1BmTexUE1d9YNnhG0qmTqmE9kMX4=";
|
2015-12-09 02:02:59 +03:00
|
|
|
};
|
2016-02-02 23:05:44 +03:00
|
|
|
|
2019-01-17 15:07:46 +03:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2021-03-27 10:07:00 +03:00
|
|
|
buildInputs = [ fuse openssl zlib bzip2 libxml2 icu lzfse ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv ];
|
2016-02-02 23:05:44 +03:00
|
|
|
|
2020-10-25 12:03:38 +03:00
|
|
|
CXXFLAGS = [
|
|
|
|
"-DCOMPILE_WITH_LZFSE=1"
|
|
|
|
"-llzfse"
|
|
|
|
];
|
2019-06-06 00:16:23 +03:00
|
|
|
|
2024-07-01 22:42:50 +03:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) darling-dmg;
|
|
|
|
};
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2020-04-24 17:56:25 +03:00
|
|
|
homepage = "https://www.darlinghq.org/";
|
2024-07-01 17:44:09 +03:00
|
|
|
description = "FUSE module for .dmg files (containing an HFS+ filesystem)";
|
2024-03-19 05:14:51 +03:00
|
|
|
mainProgram = "darling-dmg";
|
2021-03-27 10:07:00 +03:00
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3Only;
|
2020-10-25 12:04:26 +03:00
|
|
|
maintainers = with maintainers; [ Luflosi ];
|
2015-12-09 02:02:59 +03:00
|
|
|
};
|
|
|
|
}
|