commit
180241618a
1 changed files with 10 additions and 3 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue