diff --git a/pkgs/by-name/cl/clifm/package.nix b/pkgs/by-name/cl/clifm/package.nix index 9adfe65a1401..61398c22a792 100644 --- a/pkgs/by-name/cl/clifm/package.nix +++ b/pkgs/by-name/cl/clifm/package.nix @@ -7,17 +7,19 @@ file, readline, python3, + nix-update-script, + versionCheckHook, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "clifm"; - version = "1.24"; + version = "1.25"; src = fetchFromGitHub { owner = "leo-arch"; repo = "clifm"; - rev = "v${version}"; - hash = "sha256-RAxhjDNaNkMSIJaca1NNiMQNaEZ3WDAvaWzN3u/PceA="; + tag = "v${finalAttrs.version}"; + hash = "sha256-Q4BzkLclJJGybx6tnOhfRE3X5iFtuYTfbAvSLO7isX4="; }; buildInputs = [ @@ -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"; }; -} +})