mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
ncdu: move to by-name, add updateScript, adopt (#411372)
This commit is contained in:
commit
e1223687f8
4 changed files with 10 additions and 10 deletions
|
@ -8,7 +8,6 @@
|
||||||
zstd,
|
zstd,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
testers,
|
|
||||||
pie ? stdenv.hostPlatform.isDarwin,
|
pie ? stdenv.hostPlatform.isDarwin,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -38,14 +37,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
installManPage ncdu.1
|
installManPage ncdu.1
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeInstallCheckInputs = [
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
versionCheckHook
|
versionCheckProgramArg = "--version";
|
||||||
];
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru.updateScript = ./update.sh;
|
||||||
package = finalAttrs.finalPackage;
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://dev.yorhel.nl/ncdu";
|
homepage = "https://dev.yorhel.nl/ncdu";
|
||||||
|
@ -55,6 +51,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
maintainers = with lib.maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
pSub
|
pSub
|
||||||
rodrgz
|
rodrgz
|
||||||
|
defelo
|
||||||
];
|
];
|
||||||
inherit (zig_0_14.meta) platforms;
|
inherit (zig_0_14.meta) platforms;
|
||||||
mainProgram = "ncdu";
|
mainProgram = "ncdu";
|
5
pkgs/by-name/nc/ncdu/update.sh
Executable file
5
pkgs/by-name/nc/ncdu/update.sh
Executable 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
|
|
@ -13546,9 +13546,7 @@ with pkgs;
|
||||||
|
|
||||||
mythtv = libsForQt5.callPackage ../applications/video/mythtv { };
|
mythtv = libsForQt5.callPackage ../applications/video/mythtv { };
|
||||||
|
|
||||||
ncdu = callPackage ../tools/misc/ncdu { };
|
ncdu_1 = callPackage ../by-name/nc/ncdu/1.nix { };
|
||||||
|
|
||||||
ncdu_1 = callPackage ../tools/misc/ncdu/1.nix { };
|
|
||||||
|
|
||||||
notepadqq = libsForQt5.callPackage ../applications/editors/notepadqq { };
|
notepadqq = libsForQt5.callPackage ../applications/editors/notepadqq { };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue