File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
pkgs/by-name/gr/grandperspective Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 44 fetchurl ,
55 undmg ,
66 makeWrapper ,
7+ writeShellApplication ,
8+ curl ,
9+ cacert ,
10+ gnugrep ,
11+ common-updater-scripts ,
712} :
813
914stdenv . mkDerivation ( finalAttrs : {
@@ -29,6 +34,21 @@ stdenv.mkDerivation (finalAttrs: {
2934 makeWrapper "$out/Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective" "$out/bin/grandperspective"
3035 '' ;
3136
37+ passthru . updateScript = lib . getExe ( writeShellApplication {
38+ name = "grandperspective-update-script" ;
39+ runtimeInputs = [
40+ curl
41+ cacert
42+ gnugrep
43+ common-updater-scripts
44+ ] ;
45+ text = ''
46+ url="https://sourceforge.net/p/grandperspectiv/documentation/ci/master/tree/CHANGES.txt?format=raw"
47+ version=$(curl -s "$url" | grep -oP 'Version \K[0-9.]+(?=,)' | head -n 1)
48+ update-source-version grandperspective "$version"
49+ '' ;
50+ } ) ;
51+
3252 meta = with lib ; {
3353 description = "Open-source macOS application to analyze disk usage" ;
3454 longDescription = ''
You can’t perform that action at this time.
0 commit comments