1 { stdenv, lib, fetchurl, undmg, makeWrapper }:
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-ZgyBeQCoixLGCFS8+UFoMilvtswplEC8MzK3BE4ocDg=";
13 sourceRoot = "GrandPerspective.app";
14 buildInputs = [ undmg ];
15 nativeBuildInputs = [ makeWrapper ];
16 # Create a trampoline script in $out/bin/ because a symlink doesn’t work for
19 mkdir -p "$out/Applications/GrandPerspective.app" "$out/bin"
20 cp -R . "$out/Applications/GrandPerspective.app"
21 makeWrapper "$out/Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective" "$out/bin/grandperspective"
25 description = "Open-source macOS application to analyze disk usage";
27 GrandPerspective is a small utility application for macOS that graphically shows the disk usage within a file
28 system. It can help you to manage your disk, as you can easily spot which files and folders take up the most
29 space. It uses a so called tree map for visualisation. Each file is shown as a rectangle with an area proportional to
30 the file's size. Files in the same folder appear together, but their placement is otherwise arbitrary.
32 mainProgram = "grandperspective";
33 homepage = "https://grandperspectiv.sourceforge.net";
34 license = licenses.gpl2Only;
35 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
36 maintainers = with maintainers; [ eliandoran ];
37 platforms = platforms.darwin;