From a838fe3092194ef36327caafcbb09c0d12f8aa05 Mon Sep 17 00:00:00 2001 From: Josef Hofer Date: Thu, 25 Sep 2025 11:22:31 +0200 Subject: [PATCH] mist: init at version 0.30 --- pkgs/by-name/mi/mist/package.nix | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/mi/mist/package.nix 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 ]; + }; +})