mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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,
|
file,
|
||||||
readline,
|
readline,
|
||||||
python3,
|
python3,
|
||||||
|
nix-update-script,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "clifm";
|
pname = "clifm";
|
||||||
version = "1.25";
|
version = "1.25";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "leo-arch";
|
owner = "leo-arch";
|
||||||
repo = "clifm";
|
repo = "clifm";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-Q4BzkLclJJGybx6tnOhfRE3X5iFtuYTfbAvSLO7isX4=";
|
hash = "sha256-Q4BzkLclJJGybx6tnOhfRE3X5iFtuYTfbAvSLO7isX4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,12 +37,18 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with lib; {
|
nativeCheckInputs = [ versionCheckHook ];
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
homepage = "https://github.com/leo-arch/clifm";
|
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";
|
changelog = "https://github.com/leo-arch/clifm/releases/tag/v${finalAttrs.version}";
|
||||||
license = licenses.gpl2Plus;
|
description = "A CLI-based, shell-like, and non-curses terminal file manager";
|
||||||
maintainers = with maintainers; [ nadir-ishiguro ];
|
license = lib.licenses.gpl2Plus;
|
||||||
platforms = platforms.unix;
|
maintainers = with lib.maintainers; [ nadir-ishiguro ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
mainProgram = "clifm";
|
mainProgram = "clifm";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue