ncdu: add updateScript

This commit is contained in:
Defelo
2025-05-28 16:08:46 +02:00
parent eb6138d358
commit e9350edebf
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -41,6 +41,8 @@ stdenv.mkDerivation (finalAttrs: {
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = ./update.sh;
meta = {
homepage = "https://dev.yorhel.nl/ncdu";
description = "Disk usage analyzer with an ncurses interface";
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts coreutils gnused nix-update
version=$(list-git-tags --url=https://g.blicky.net/ncdu.git | tail -1 | sed 's/^v//')
nix-update --version="$version" ncdu