From ed6a9ec8fee0e8b94a0058637f3bbb9560fa9da6 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 5 Apr 2023 07:35:51 +0100 Subject: [PATCH] vifm: 0.12.1 -> 0.13 Changes: https://github.com/vifm/vifm/releases/tag/v0.13 --- pkgs/applications/file-managers/vifm/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/file-managers/vifm/default.nix b/pkgs/applications/file-managers/vifm/default.nix index ab7da2deac89..12cf91d1e3f2 100644 --- a/pkgs/applications/file-managers/vifm/default.nix +++ b/pkgs/applications/file-managers/vifm/default.nix @@ -6,23 +6,24 @@ # adds support for handling removable media (vifm-media). Linux only! , mediaSupport ? false, python3 ? null, udisks2 ? null, lib ? null +, gitUpdater }: let isFullPackage = mediaSupport; in stdenv.mkDerivation rec { pname = if isFullPackage then "vifm-full" else "vifm"; - version = "0.12.1"; + version = "0.13"; src = fetchurl { url = "https://github.com/vifm/vifm/releases/download/v${version}/vifm-${version}.tar.bz2"; - sha256 = "sha256-j+KBPr3Mz+ma7OArBdYqIJkVJdRrDM+67Dr2FMZlVog="; + hash = "sha256-DZKTdJp5QHat6Wfs3EfRQdheRQNwWUdlORvfGpvUUHU="; }; nativeBuildInputs = [ perl pkg-config makeWrapper ]; buildInputs = [ ncurses libX11 util-linux file which groff ]; postPatch = '' - # Avoid '#!/usr/bin/env perl' reverences to build help. + # Avoid '#!/usr/bin/env perl' references to build help. patchShebangs --build src/helpztags ''; @@ -37,6 +38,12 @@ in stdenv.mkDerivation rec { ${lib.optionalString mediaSupport wrapVifmMedia} ''; + passthru.updateScript = gitUpdater { + url = "https://github.com/vifm/vifm.git"; + rev-prefix = "v"; + ignoredVersions = "beta"; + }; + meta = with lib; { description = "A vi-like file manager${lib.optionalString isFullPackage "; Includes support for optional features"}"; maintainers = with maintainers; [ raskin ];