clifm: cleanup

- add versionCheckHook
  - add nix-update-script
  - use finalAttrs
  - remove with lib
  - shorten description
This commit is contained in:
Nadir Ishiguro 2025-05-05 16:21:45 +02:00
parent 38b025421a
commit e4f758c7b9
No known key found for this signature in database

View file

@ -7,16 +7,18 @@
file,
readline,
python3,
nix-update-script,
versionCheckHook,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "clifm";
version = "1.25";
src = fetchFromGitHub {
owner = "leo-arch";
repo = "clifm";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-Q4BzkLclJJGybx6tnOhfRE3X5iFtuYTfbAvSLO7isX4=";
};
@ -35,12 +37,18 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with lib; {
nativeCheckInputs = [ versionCheckHook ];
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/leo-arch/clifm";
description = "CliFM is a CLI-based, shell-like, and non-curses terminal file manager written in C: simple, fast, extensible, and lightweight as hell";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ nadir-ishiguro ];
platforms = platforms.unix;
changelog = "https://github.com/leo-arch/clifm/releases/tag/v${finalAttrs.version}";
description = "A CLI-based, shell-like, and non-curses terminal file manager";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ nadir-ishiguro ];
platforms = lib.platforms.unix;
mainProgram = "clifm";
};
}
})