vifm: add vifm-full package
vifm includes some optional features what are currently no-op due
to missing dependencies. Once such example is `vifm-media`.
vimfm-media is a Linux script included with vifm which can be used to
mount/umount removable media from within vifm. However, vifm-media
has additional dependencies, namely Python, dbus, and a supported
back-end such as udisks2. While vimfm-media is currently installed,
it fails with the error "No supported backend found."
This change adds optional support for vifm-media via the new package
vifm-full; Opening for the opportunity to add whatever optional
dependencies I have not considered in this change in the future,
while not generously increasing the closure size of the original
vifm package.
For reference, vifm has a closure size of 41,164,432 while the new
vifm-full increases this to 382,642,536. Calculated with
`nix path-info -S`
Note: While vifm-media supports numerous back-ends, this change only
adds support for udisks2. In addition, vifm-media is not supported on
MacOS/OSX, for which upstream provides an alternative script.
2019-12-02 11:45:04 +01:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
2016-06-03 16:09:20 +02:00
|
|
|
, pkgconfig
|
|
|
|
, ncurses, libX11
|
2020-11-24 16:29:28 +01:00
|
|
|
, util-linux, file, which, groff
|
vifm: add vifm-full package
vifm includes some optional features what are currently no-op due
to missing dependencies. Once such example is `vifm-media`.
vimfm-media is a Linux script included with vifm which can be used to
mount/umount removable media from within vifm. However, vifm-media
has additional dependencies, namely Python, dbus, and a supported
back-end such as udisks2. While vimfm-media is currently installed,
it fails with the error "No supported backend found."
This change adds optional support for vifm-media via the new package
vifm-full; Opening for the opportunity to add whatever optional
dependencies I have not considered in this change in the future,
while not generously increasing the closure size of the original
vifm package.
For reference, vifm has a closure size of 41,164,432 while the new
vifm-full increases this to 382,642,536. Calculated with
`nix path-info -S`
Note: While vifm-media supports numerous back-ends, this change only
adds support for udisks2. In addition, vifm-media is not supported on
MacOS/OSX, for which upstream provides an alternative script.
2019-12-02 11:45:04 +01:00
|
|
|
|
|
|
|
# adds support for handling removable media (vifm-media). Linux only!
|
2020-09-27 04:33:03 +02:00
|
|
|
, mediaSupport ? false, python3 ? null, udisks2 ? null, lib ? null
|
2016-06-03 16:09:20 +02:00
|
|
|
}:
|
2011-08-10 21:16:27 +02:00
|
|
|
|
vifm: add vifm-full package
vifm includes some optional features what are currently no-op due
to missing dependencies. Once such example is `vifm-media`.
vimfm-media is a Linux script included with vifm which can be used to
mount/umount removable media from within vifm. However, vifm-media
has additional dependencies, namely Python, dbus, and a supported
back-end such as udisks2. While vimfm-media is currently installed,
it fails with the error "No supported backend found."
This change adds optional support for vifm-media via the new package
vifm-full; Opening for the opportunity to add whatever optional
dependencies I have not considered in this change in the future,
while not generously increasing the closure size of the original
vifm package.
For reference, vifm has a closure size of 41,164,432 while the new
vifm-full increases this to 382,642,536. Calculated with
`nix path-info -S`
Note: While vifm-media supports numerous back-ends, this change only
adds support for udisks2. In addition, vifm-media is not supported on
MacOS/OSX, for which upstream provides an alternative script.
2019-12-02 11:45:04 +01:00
|
|
|
let isFullPackage = mediaSupport;
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = if isFullPackage then "vifm-full" else "vifm";
|
2020-09-27 04:33:03 +02:00
|
|
|
version = "0.11";
|
2013-08-10 02:32:21 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-02 10:27:20 +02:00
|
|
|
url = "https://github.com/vifm/vifm/releases/download/v${version}/vifm-${version}.tar.bz2";
|
2020-09-27 04:33:03 +02:00
|
|
|
sha256 = "0rqyd424y0g5b5basw2ybb60r9gar4f40d1xgzr3c2dsy4jpwvyh";
|
2011-08-10 21:16:27 +02:00
|
|
|
};
|
|
|
|
|
vifm: add vifm-full package
vifm includes some optional features what are currently no-op due
to missing dependencies. Once such example is `vifm-media`.
vimfm-media is a Linux script included with vifm which can be used to
mount/umount removable media from within vifm. However, vifm-media
has additional dependencies, namely Python, dbus, and a supported
back-end such as udisks2. While vimfm-media is currently installed,
it fails with the error "No supported backend found."
This change adds optional support for vifm-media via the new package
vifm-full; Opening for the opportunity to add whatever optional
dependencies I have not considered in this change in the future,
while not generously increasing the closure size of the original
vifm package.
For reference, vifm has a closure size of 41,164,432 while the new
vifm-full increases this to 382,642,536. Calculated with
`nix path-info -S`
Note: While vifm-media supports numerous back-ends, this change only
adds support for udisks2. In addition, vifm-media is not supported on
MacOS/OSX, for which upstream provides an alternative script.
2019-12-02 11:45:04 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
2020-11-24 16:29:28 +01:00
|
|
|
buildInputs = [ ncurses libX11 util-linux file which groff ];
|
2011-08-10 21:16:27 +02:00
|
|
|
|
vifm: add vifm-full package
vifm includes some optional features what are currently no-op due
to missing dependencies. Once such example is `vifm-media`.
vimfm-media is a Linux script included with vifm which can be used to
mount/umount removable media from within vifm. However, vifm-media
has additional dependencies, namely Python, dbus, and a supported
back-end such as udisks2. While vimfm-media is currently installed,
it fails with the error "No supported backend found."
This change adds optional support for vifm-media via the new package
vifm-full; Opening for the opportunity to add whatever optional
dependencies I have not considered in this change in the future,
while not generously increasing the closure size of the original
vifm package.
For reference, vifm has a closure size of 41,164,432 while the new
vifm-full increases this to 382,642,536. Calculated with
`nix path-info -S`
Note: While vifm-media supports numerous back-ends, this change only
adds support for udisks2. In addition, vifm-media is not supported on
MacOS/OSX, for which upstream provides an alternative script.
2019-12-02 11:45:04 +01:00
|
|
|
postFixup = let
|
2020-09-27 04:33:03 +02:00
|
|
|
path = lib.makeBinPath
|
|
|
|
[ udisks2
|
vifm: add vifm-full package
vifm includes some optional features what are currently no-op due
to missing dependencies. Once such example is `vifm-media`.
vimfm-media is a Linux script included with vifm which can be used to
mount/umount removable media from within vifm. However, vifm-media
has additional dependencies, namely Python, dbus, and a supported
back-end such as udisks2. While vimfm-media is currently installed,
it fails with the error "No supported backend found."
This change adds optional support for vifm-media via the new package
vifm-full; Opening for the opportunity to add whatever optional
dependencies I have not considered in this change in the future,
while not generously increasing the closure size of the original
vifm package.
For reference, vifm has a closure size of 41,164,432 while the new
vifm-full increases this to 382,642,536. Calculated with
`nix path-info -S`
Note: While vifm-media supports numerous back-ends, this change only
adds support for udisks2. In addition, vifm-media is not supported on
MacOS/OSX, for which upstream provides an alternative script.
2019-12-02 11:45:04 +01:00
|
|
|
(python3.withPackages (p: [p.dbus-python]))
|
|
|
|
];
|
|
|
|
|
|
|
|
wrapVifmMedia = "wrapProgram $out/share/vifm/vifm-media --prefix PATH : ${path}";
|
|
|
|
in ''
|
|
|
|
${if mediaSupport then wrapVifmMedia else ""}
|
|
|
|
'';
|
|
|
|
|
2016-06-03 16:09:20 +02:00
|
|
|
meta = with stdenv.lib; {
|
vifm: add vifm-full package
vifm includes some optional features what are currently no-op due
to missing dependencies. Once such example is `vifm-media`.
vimfm-media is a Linux script included with vifm which can be used to
mount/umount removable media from within vifm. However, vifm-media
has additional dependencies, namely Python, dbus, and a supported
back-end such as udisks2. While vimfm-media is currently installed,
it fails with the error "No supported backend found."
This change adds optional support for vifm-media via the new package
vifm-full; Opening for the opportunity to add whatever optional
dependencies I have not considered in this change in the future,
while not generously increasing the closure size of the original
vifm package.
For reference, vifm has a closure size of 41,164,432 while the new
vifm-full increases this to 382,642,536. Calculated with
`nix path-info -S`
Note: While vifm-media supports numerous back-ends, this change only
adds support for udisks2. In addition, vifm-media is not supported on
MacOS/OSX, for which upstream provides an alternative script.
2019-12-02 11:45:04 +01:00
|
|
|
description = ''A vi-like file manager${if isFullPackage then "; Includes support for optional features" else ""}'';
|
2019-07-03 11:27:39 +02:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
vifm: add vifm-full package
vifm includes some optional features what are currently no-op due
to missing dependencies. Once such example is `vifm-media`.
vimfm-media is a Linux script included with vifm which can be used to
mount/umount removable media from within vifm. However, vifm-media
has additional dependencies, namely Python, dbus, and a supported
back-end such as udisks2. While vimfm-media is currently installed,
it fails with the error "No supported backend found."
This change adds optional support for vifm-media via the new package
vifm-full; Opening for the opportunity to add whatever optional
dependencies I have not considered in this change in the future,
while not generously increasing the closure size of the original
vifm package.
For reference, vifm has a closure size of 41,164,432 while the new
vifm-full increases this to 382,642,536. Calculated with
`nix path-info -S`
Note: While vifm-media supports numerous back-ends, this change only
adds support for udisks2. In addition, vifm-media is not supported on
MacOS/OSX, for which upstream provides an alternative script.
2019-12-02 11:45:04 +01:00
|
|
|
platforms = if mediaSupport then platforms.linux else platforms.unix;
|
2016-06-03 16:09:20 +02:00
|
|
|
license = licenses.gpl2;
|
2018-01-05 20:42:46 +01:00
|
|
|
downloadPage = "https://vifm.info/downloads.shtml";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://vifm.info/";
|
2016-10-04 10:07:46 +02:00
|
|
|
inherit version;
|
|
|
|
updateWalker = true;
|
2011-08-10 21:16:27 +02:00
|
|
|
};
|
2013-08-10 02:32:21 +02:00
|
|
|
}
|