2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, zlib, bzip2, openssl, fetchpatch }:
|
2011-01-22 12:28:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-02 09:38:45 +00:00
|
|
|
pname = "dmg2img";
|
|
|
|
version = "1.6.7";
|
2011-01-22 12:28:59 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-02 09:38:45 +00:00
|
|
|
url = "http://vu1tur.eu.org/tools/dmg2img-${version}.tar.gz";
|
2017-05-07 16:36:24 +00:00
|
|
|
sha256 = "066hqhg7k90xcw5aq86pgr4l7apzvnb4559vj5s010avbk8adbh2";
|
2011-01-22 12:28:59 +00:00
|
|
|
};
|
2013-07-13 14:42:15 +00:00
|
|
|
|
2020-05-03 12:33:05 +00: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 12:28:59 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2020-05-03 12:33:05 +00:00
|
|
|
install -D dmg2img $out/bin/dmg2img
|
|
|
|
install -D vfdecrypt $out/bin/vfdecrypt
|
2011-01-22 12:28:59 +00:00
|
|
|
'';
|
2016-08-02 16:06:29 +00:00
|
|
|
|
|
|
|
meta = {
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "An Apple's compressed dmg to standard (hfsplus) image disk file convert tool";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2011-01-22 12:28:59 +00:00
|
|
|
}
|