diff --git a/pkgs/by-name/mi/mist/package.nix b/pkgs/by-name/mi/mist/package.nix new file mode 100644 index 000000000000..e35008d124ee --- /dev/null +++ b/pkgs/by-name/mi/mist/package.nix @@ -0,0 +1,43 @@ +{ + lib, + stdenvNoCC, + fetchurl, + undmg, + nix-update-script, +}: +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "mist"; + version = "0.30"; + + src = fetchurl { + url = "https://github.com/ninxsoft/Mist/releases/download/v${finalAttrs.version}/Mist.${finalAttrs.version}.dmg"; + hash = "sha256-J3Oxtw+yFV2Mpzqc6NqPPJR76r0DwywJdAU1FSvbYKE="; + }; + + sourceRoot = "."; + + __structuredAttrs = true; + strictDeps = true; + + nativeBuildInputs = [ undmg ]; + + installPhase = '' + runHook preInstall + + mkdir -p "$out/Applications" + cp -r *.app "$out/Applications" + + runHook postInstall + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Utility that automatically downloads macOS firmwares and installers"; + homepage = "https://github.com/ninxsoft/Mist"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ojsef39 ]; + platforms = lib.platforms.darwin; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +})