tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ncdu: add updateScript
Defelo
8 months ago
e9350ede
eb6138d3
+7
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
nc
ncdu
package.nix
update.sh
+2
pkgs/by-name/nc/ncdu/package.nix
···
41
41
versionCheckProgramArg = "--version";
42
42
doInstallCheck = true;
43
43
44
44
+
passthru.updateScript = ./update.sh;
45
45
+
44
46
meta = {
45
47
homepage = "https://dev.yorhel.nl/ncdu";
46
48
description = "Disk usage analyzer with an ncurses interface";
+5
pkgs/by-name/nc/ncdu/update.sh
···
1
1
+
#!/usr/bin/env nix-shell
2
2
+
#!nix-shell -i bash -p common-updater-scripts coreutils gnused nix-update
3
3
+
4
4
+
version=$(list-git-tags --url=https://g.blicky.net/ncdu.git | tail -1 | sed 's/^v//')
5
5
+
nix-update --version="$version" ncdu