1 { stdenv, lib, fetchurl, undmg }:
3 stdenv.mkDerivation (finalAttrs: {
5 pname = "grandperspective";
8 inherit (finalAttrs) version;
9 url = "mirror://sourceforge/grandperspectiv/GrandPerspective-${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}.dmg";
10 hash = "sha256-iTtvP6iONcfDWJ3qMh+TUJMN+3spwCQ/5S+A307BJCM=";
13 sourceRoot = "GrandPerspective.app";
14 buildInputs = [ undmg ];
16 mkdir -p "$out/Applications/GrandPerspective.app";
17 cp -R . "$out/Applications/GrandPerspective.app";
21 description = "Open-source macOS application to analyze disk usage";
23 GrandPerspective is a small utility application for macOS that graphically shows the disk usage within a file
24 system. It can help you to manage your disk, as you can easily spot which files and folders take up the most
25 space. It uses a so called tree map for visualisation. Each file is shown as a rectangle with an area proportional to
26 the file's size. Files in the same folder appear together, but their placement is otherwise arbitrary.
28 homepage = "https://grandperspectiv.sourceforge.net";
29 license = licenses.gpl2Only;
30 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
31 maintainers = with maintainers; [ eliandoran ];
32 platforms = platforms.darwin;