2020-08-20 02:35:14 +02:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, bzip2, lzfse, pkg-config }:
|
2016-03-03 11:39:54 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-08-20 02:35:14 +02:00
|
|
|
version = "1.1.0";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "undmg";
|
2016-03-03 11:39:54 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthewbauer";
|
|
|
|
repo = "undmg";
|
2017-03-03 22:45:24 +01:00
|
|
|
rev = "v${version}";
|
2020-08-20 02:35:14 +02:00
|
|
|
sha256 = "0rb4h89jrl04vwf6p679ipa4mp95hzmc1ca11wqbanv3xd1kcpxm";
|
2016-03-03 11:39:54 +01:00
|
|
|
};
|
|
|
|
|
2020-08-20 02:35:14 +02:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib bzip2 lzfse ];
|
2016-03-03 11:39:54 +01:00
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2019-10-27 14:03:25 +01:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2016-03-03 11:39:54 +01:00
|
|
|
|
2017-03-03 22:45:24 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/matthewbauer/undmg";
|
2016-03-03 11:39:54 +01:00
|
|
|
description = "Extract a DMG file";
|
2017-03-03 22:45:24 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ matthewbauer lnl7 ];
|
2016-03-03 11:39:54 +01:00
|
|
|
};
|
|
|
|
}
|