From afd204905e4c3b437b575167d1fdfff47aca39ea Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 8 Feb 2023 08:24:36 +0000 Subject: [PATCH] vifm: fix `:help` by pulling in `perl` to build depends Without the change `:help` command failed to find the help as: $ rm -rfv ~/.config/vifm/ ~/.vifm $ vifm :help Error detected while processing command line: E149: Sorry, no help for vifm-app.txt This happened because `tags` in `doc` directory was empty: $(top_srcdir)/data/vim/doc/plugin/tags: \ $(top_srcdir)/data/vim/doc/plugin/vifm-plugin.txt $(AM_V_GEN)mkdir -p ../data/vim/doc/plugin/; \ if [ -n "$(PERL)" ]; then \ $(srcdir)/helpztags "$(top_srcdir)/data/vim/doc/plugin"; \ elif [ -n "$(VIM)" ]; then \ vim -e -s -c 'helptags $(top_srcdir)/data/vim/doc/plugin|q'; \ else \ touch $@; \ fi The change pulls in `perl` into build depends to get tags working. --- pkgs/applications/file-managers/vifm/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/file-managers/vifm/default.nix b/pkgs/applications/file-managers/vifm/default.nix index ad326e459775..55a7ebd84afc 100644 --- a/pkgs/applications/file-managers/vifm/default.nix +++ b/pkgs/applications/file-managers/vifm/default.nix @@ -1,4 +1,5 @@ { stdenv, fetchurl, makeWrapper +, perl # used to generate help tags , pkg-config , ncurses, libX11 , util-linux, file, which, groff @@ -17,9 +18,14 @@ in stdenv.mkDerivation rec { sha256 = "sha256-j+KBPr3Mz+ma7OArBdYqIJkVJdRrDM+67Dr2FMZlVog="; }; - nativeBuildInputs = [ pkg-config makeWrapper ]; + nativeBuildInputs = [ perl pkg-config makeWrapper ]; buildInputs = [ ncurses libX11 util-linux file which groff ]; + postPatch = '' + # Avoid '#!/usr/bin/env perl' reverences to build help. + patchShebangs --build src/helpztags + ''; + postFixup = let path = lib.makeBinPath [ udisks2