daisydisk: init at 4.30

This commit is contained in:
Dimitar Nestorov
2025-01-04 16:21:28 +02:00
parent f23f3b8721
commit 88d1dc0d49
+60
View File
@@ -0,0 +1,60 @@
{
lib,
stdenvNoCC,
fetchzip,
curl,
cacert,
xmlstarlet,
common-updater-scripts,
writeShellApplication,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "daisydisk";
version = "4.30";
src = fetchzip {
url = "https://daisydiskapp.com/download/DaisyDisk.zip";
hash = "sha256-4nVD5FXj0Ol+QQ7NYUxGH3DzkXEpTawJoZpUgdIUNVY=";
stripRoot = false;
};
dontPatch = true;
dontConfigure = true;
dontBuild = true;
dontFixup = true;
installPhase = ''
runHook preInstall
mkdir -p $out/Applications
mv DaisyDisk.app $out/Applications
runHook postInstall
'';
passthru.updateScript = lib.getExe (writeShellApplication {
name = "daisydisk-update-script";
runtimeInputs = [
curl
cacert
xmlstarlet
common-updater-scripts
];
text = ''
url="https://daisydiskapp.com/downloads/appcastFeed.php"
version=$(curl -s "$url" | xmlstarlet sel -t -v 'rss/channel/item[1]/enclosure/@sparkle:version' -n)
update-source-version daisydisk "$version"
'';
});
meta = {
description = "Find out whats taking up your disk space and recover it in the most efficient and easy way";
homepage = "https://daisydiskapp.com/";
changelog = "https://daisydiskapp.com/releases";
license = [ lib.licenses.unfree ];
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
maintainers = with lib.maintainers; [ DimitarNestorov ];
platforms = lib.platforms.darwin;
};
})