mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
clifm: cleanup
- add versionCheckHook - add nix-update-script - use finalAttrs - remove with lib - shorten description
This commit is contained in:
parent
38b025421a
commit
e4f758c7b9
1 changed files with 16 additions and 8 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue