1 { lib, stdenv, fetchurl, zlib, bzip2, openssl, fetchpatch }:
3 stdenv.mkDerivation rec {
8 url = "http://vu1tur.eu.org/tools/dmg2img-${version}.tar.gz";
9 sha256 = "066hqhg7k90xcw5aq86pgr4l7apzvnb4559vj5s010avbk8adbh2";
12 buildInputs = [ zlib bzip2 openssl ];
16 url = "https://raw.githubusercontent.com/Homebrew/formula-patches/85fa66a9/dmg2img/openssl-1.1.diff";
17 sha256 = "076sz69hf3ryylplg025vl8sj991cb81g3yazsmrf8anrd7ffmxx";
21 patchFlags = [ "-p0" ];
24 install -D dmg2img $out/bin/dmg2img
25 install -D vfdecrypt $out/bin/vfdecrypt
29 platforms = lib.platforms.unix;
30 description = "Apple's compressed dmg to standard (hfsplus) image disk file convert tool";
31 license = lib.licenses.gpl3;