···11+{ stdenv, lib, fetchurl, undmg, ... }:
22+33+stdenv.mkDerivation rec {
44+ version = "3.0.1";
55+ pname = "grandperspective";
66+77+ src = fetchurl {
88+ inherit version;
99+ url = "mirror://sourceforge/grandperspectiv/GrandPerspective-${builtins.replaceStrings [ "." ] [ "_" ] version}.dmg";
1010+ sha256 = "sha256-ZPqrlN9aw5q7656GmmxCnTRBw3lu9n952rIyun8MsiI=";
1111+ };
1212+1313+ sourceRoot = "GrandPerspective.app";
1414+ buildInputs = [ undmg ];
1515+ installPhase = ''
1616+ mkdir -p "$out/Applications/GrandPerspective.app";
1717+ cp -R . "$out/Applications/GrandPerspective.app";
1818+ '';
1919+2020+ meta = with lib; {
2121+ description = "Open-source macOS application to analyze disk usage";
2222+ longDescription = ''
2323+ GrandPerspective is a small utility application for macOS that graphically shows the disk usage within a file
2424+ system. It can help you to manage your disk, as you can easily spot which files and folders take up the most
2525+ space. It uses a so called tree map for visualisation. Each file is shown as a rectangle with an area proportional to
2626+ the file's size. Files in the same folder appear together, but their placement is otherwise arbitrary.
2727+ '';
2828+ homepage = "https://grandperspectiv.sourceforge.net";
2929+ license = licenses.gpl2;
3030+ maintainers = with maintainers; [ eliandoran ];
3131+ platforms = [ "x86_64-darwin" ];
3232+ };
3333+3434+}