Merge pull request #53373 from dtzWill/fix/nnn-readline-and-shell-completions
nnn: remove unused dep, install shell completions
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, ncurses, readline, conf ? null }:
|
{ stdenv, fetchFromGitHub, pkgconfig, ncurses, conf ? null }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@@ -17,9 +17,16 @@ stdenv.mkDerivation rec {
|
|||||||
preBuild = optionalString (conf!=null) "cp ${configFile} nnn.h";
|
preBuild = optionalString (conf!=null) "cp ${configFile} nnn.h";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ ncurses readline ];
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
installFlags = [ "DESTDIR=$(out)" "PREFIX=" ];
|
makeFlags = [ "DESTDIR=${placeholder "out"}" "PREFIX=" ];
|
||||||
|
|
||||||
|
# shell completions
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm555 scripts/auto-completion/bash/nnn-completion.bash $out/share/bash-completion/completions/nnn.bash
|
||||||
|
install -Dm555 scripts/auto-completion/zsh/_nnn -t $out/share/zsh/site-functions
|
||||||
|
install -Dm555 scripts/auto-completion/fish/nnn.fish -t $out/share/fish/vendor_completions.d
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Small ncurses-based file browser forked from noice";
|
description = "Small ncurses-based file browser forked from noice";
|
||||||
|
|||||||
Reference in New Issue
Block a user