2016-03-03 11:39:54 +01:00
|
|
|
{ stdenv, fetchFromGitHub, zlib, bzip2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-03 22:45:24 +01:00
|
|
|
version = "1.0.3";
|
2016-03-03 11:39:54 +01:00
|
|
|
name = "undmg-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "matthewbauer";
|
|
|
|
repo = "undmg";
|
2017-03-03 22:45:24 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1pxqw92h2w75d4jwiihwnkhnsfk09cddh3flgrqwh9r3ry14fgbb";
|
|
|
|
|
2016-03-03 11:39:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib bzip2 ];
|
|
|
|
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2017-03-03 22:45:24 +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; {
|
2016-03-03 11:39:54 +01:00
|
|
|
homepage = https://github.com/matthewbauer/undmg;
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|