mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
32 lines
886 B
Nix
32 lines
886 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, fuse, zlib, bzip2, openssl, libxml2, icu, lzfse, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "darling-dmg";
|
|
version = "1.0.4+git20200427";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "darlinghq";
|
|
repo = "darling-dmg";
|
|
rev = "71cc76c792db30328663272788c0b64aca27fdb0";
|
|
sha256 = "08iphkxlmjddrxpbm13gxyqwcrd0k65z3l1944n4pccb6qbyj8gv";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
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";
|
|
platforms = platforms.unix;
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ Luflosi ];
|
|
};
|
|
}
|