From 53f93c3a5db6d6410dcce49b66ed9ff01ec468a7 Mon Sep 17 00:00:00 2001 From: lucasew Date: Fri, 27 Dec 2024 13:45:00 -0300 Subject: [PATCH 1/2] ranger: pin to a version, remove with lib, add update script Signed-off-by: lucasew --- pkgs/by-name/ra/ranger/package.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ra/ranger/package.nix b/pkgs/by-name/ra/ranger/package.nix index 557e6ddfb7013..ae422973869a1 100644 --- a/pkgs/by-name/ra/ranger/package.nix +++ b/pkgs/by-name/ra/ranger/package.nix @@ -12,17 +12,18 @@ neoVimSupport ? true, improvedEncodingDetection ? true, rightToLeftTextSupport ? false, + gitUpdater, }: python3Packages.buildPythonApplication rec { pname = "ranger"; - version = "1.9.3-unstable-2023-08-23"; + version = "1.9.3"; src = fetchFromGitHub { owner = "ranger"; repo = "ranger"; - rev = "38bb8901004b75a407ffee4b9e176bc0a436cb15"; - hash = "sha256-NpsrABk95xHNvhlRjKFh326IW83mYj1cmK3aE9JQSRo="; + tag = "v${version}"; + hash = "sha256-iNMOKGsPFzjqojCttZf9eGkC9Ju00kFsx9uqz3x2z+c="; }; LC_ALL = "en_US.UTF-8"; @@ -67,12 +68,14 @@ python3Packages.buildPythonApplication rec { --replace "set preview_images false" "set preview_images true" ''; - meta = with lib; { + passthru.updateScript = gitUpdater { rev-prefix = "v"; }; + + meta = { description = "File manager with minimalistic curses interface"; homepage = "https://ranger.github.io/"; - license = licenses.gpl3Only; - platforms = platforms.unix; - maintainers = with maintainers; [ + license = lib.licenses.gpl3Only; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ toonn magnetophon ]; From e27a443481e9d4aec0fd4c59e9e726ec17d76322 Mon Sep 17 00:00:00 2001 From: lucasew Date: Fri, 27 Dec 2024 13:45:50 -0300 Subject: [PATCH 2/2] ranger: 1.9.3-unstable-2023-08-23 -> 1.9.4 Signed-off-by: lucasew --- pkgs/by-name/ra/ranger/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ra/ranger/package.nix b/pkgs/by-name/ra/ranger/package.nix index ae422973869a1..16bd891f18b7d 100644 --- a/pkgs/by-name/ra/ranger/package.nix +++ b/pkgs/by-name/ra/ranger/package.nix @@ -17,13 +17,13 @@ python3Packages.buildPythonApplication rec { pname = "ranger"; - version = "1.9.3"; + version = "1.9.4"; src = fetchFromGitHub { owner = "ranger"; repo = "ranger"; tag = "v${version}"; - hash = "sha256-iNMOKGsPFzjqojCttZf9eGkC9Ju00kFsx9uqz3x2z+c="; + hash = "sha256-9ehxMXwQj7oVhlotTc3mzCKCkoMSbB9cliPg/NMEoWM="; }; LC_ALL = "en_US.UTF-8";