ncdu: move to by-name, add updateScript, adopt (#411372)

This commit is contained in:
h7x4 2025-06-01 02:55:01 +02:00 committed by GitHub
commit e1223687f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 10 deletions

View file

@ -8,7 +8,6 @@
zstd,
installShellFiles,
versionCheckHook,
testers,
pie ? stdenv.hostPlatform.isDarwin,
}:
@ -38,14 +37,11 @@ stdenv.mkDerivation (finalAttrs: {
installManPage ncdu.1
'';
nativeInstallCheckInputs = [
versionCheckHook
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
passthru.updateScript = ./update.sh;
meta = {
homepage = "https://dev.yorhel.nl/ncdu";
@ -55,6 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = with lib.maintainers; [
pSub
rodrgz
defelo
];
inherit (zig_0_14.meta) platforms;
mainProgram = "ncdu";

5
pkgs/by-name/nc/ncdu/update.sh Executable file
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

View file

@ -13546,9 +13546,7 @@ with pkgs;
mythtv = libsForQt5.callPackage ../applications/video/mythtv { };
ncdu = callPackage ../tools/misc/ncdu { };
ncdu_1 = callPackage ../tools/misc/ncdu/1.nix { };
ncdu_1 = callPackage ../by-name/nc/ncdu/1.nix { };
notepadqq = libsForQt5.callPackage ../applications/editors/notepadqq { };