Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenvNoCC,
fetchzip,
curl,
cacert,
xmlstarlet,
common-updater-scripts,
writeShellApplication,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "daisydisk";
version = "4.31";
src = fetchzip {
url = "https://daisydiskapp.com/download/DaisyDisk.zip";
hash = "sha256-z0F1sHihmXR5hN/AwrxLr9ZxfcCN+OSeWvWBe+qwWMU=";
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;
};
})