1{ lib, stdenv, fetchFromGitHub, zlib, bzip2, lzfse, pkg-config }:
2
3stdenv.mkDerivation rec {
4 version = "1.1.0";
5 pname = "undmg";
6
7 src = fetchFromGitHub {
8 owner = "matthewbauer";
9 repo = "undmg";
10 rev = "v${version}";
11 sha256 = "0rb4h89jrl04vwf6p679ipa4mp95hzmc1ca11wqbanv3xd1kcpxm";
12 };
13
14 nativeBuildInputs = [ pkg-config ];
15
16 buildInputs = [ zlib bzip2 lzfse ];
17
18 setupHook = ./setup-hook.sh;
19
20 makeFlags = [ "PREFIX=$(out)" ];
21
22 meta = with lib; {
23 homepage = "https://github.com/matthewbauer/undmg";
24 description = "Extract a DMG file";
25 license = licenses.gpl3;
26 platforms = platforms.all;
27 maintainers = with maintainers; [ matthewbauer lnl7 ];
28 };
29}