2020-05-03 14:33:05 +02:00
|
|
|
{ stdenv, fetchurl, zlib, bzip2, openssl, fetchpatch }:
|
2011-01-22 13:28:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-05-07 18:36:24 +02:00
|
|
|
name = "dmg2img-1.6.7";
|
2011-01-22 13:28:59 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://vu1tur.eu.org/tools/${name}.tar.gz";
|
2017-05-07 18:36:24 +02:00
|
|
|
sha256 = "066hqhg7k90xcw5aq86pgr4l7apzvnb4559vj5s010avbk8adbh2";
|
2011-01-22 13:28:59 +01:00
|
|
|
};
|
2013-07-13 16:42:15 +02:00
|
|
|
|
2020-05-03 14:33:05 +02:00
|
|
|
buildInputs = [ zlib bzip2 openssl ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/dmg2img/openssl-1.1.diff";
|
|
|
|
sha256 = "076sz69hf3ryylplg025vl8sj991cb81g3yazsmrf8anrd7ffmxx";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
patchFlags = [ "-p0" ];
|
2011-01-22 13:28:59 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
2020-05-03 14:33:05 +02:00
|
|
|
install -D dmg2img $out/bin/dmg2img
|
|
|
|
install -D vfdecrypt $out/bin/vfdecrypt
|
2011-01-22 13:28:59 +01:00
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2017-05-07 18:36:24 +02:00
|
|
|
description = "An Apple's compressed dmg to standard (hfsplus) image disk file convert tool.";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2011-01-22 13:28:59 +01:00
|
|
|
}
|