nix: bashCompletion -> bash-completion
This commit is contained in:
@@ -28,8 +28,8 @@ let
|
|||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s $hsie $out/bin/$name
|
ln -s $hsie $out/bin/$name
|
||||||
'';
|
'';
|
||||||
bashCompletion =
|
bash-completion =
|
||||||
runCommand "${name}-bash-completion" { inherit bin name; }
|
runCommand "${name}-bash-completion" { inherit bin name; }
|
||||||
"$bin/bin/$name --bash-completion-script $bin/bin/$name > $out";
|
"$bin/bin/$name --bash-completion-script $bin/bin/$name > $out";
|
||||||
in
|
in
|
||||||
hsie // { inherit bashCompletion bin; }
|
hsie // { inherit bash-completion bin; }
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
# Creates an environment that exposes bashCompletion arguments from all checkedShellScripts
|
# Creates an environment that exposes bash-completion arguments from all checkedShellScripts
|
||||||
{ buildEnv }:
|
{ buildEnv }:
|
||||||
{ name
|
{ name
|
||||||
, tools
|
, tools
|
||||||
, extra ? { }
|
, extra ? { }
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
bashCompletion = builtins.map (tool: tool.bashCompletion) tools;
|
bash-completion = builtins.map (tool: tool.bash-completion) tools;
|
||||||
|
|
||||||
env = buildEnv {
|
env = buildEnv {
|
||||||
inherit name;
|
inherit name;
|
||||||
@@ -13,4 +13,4 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
env // { inherit bashCompletion; } // extra
|
env // { inherit bash-completion; } // extra
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ let
|
|||||||
sed '/_positionals_count + 1/a\\t\t\t\tset -- "''${@:1:1}" "--" "''${@:2}"' -i $out
|
sed '/_positionals_count + 1/a\\t\t\t\tset -- "''${@:1:1}" "--" "''${@:2}"' -i $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
bashCompletion =
|
bash-completion =
|
||||||
runCommand "${name}-completion" { } (
|
runCommand "${name}-completion" { } (
|
||||||
''
|
''
|
||||||
${argbash}/bin/argbash --type completion --strip all ${argsTemplate}/${name}.m4 > $out
|
${argbash}/bin/argbash --type completion --strip all ${argsTemplate}/${name}.m4 > $out
|
||||||
@@ -138,4 +138,4 @@ let
|
|||||||
script =
|
script =
|
||||||
runCommand name { inherit bin name; } "ln -s $bin/bin/$name $out";
|
runCommand name { inherit bin name; } "ln -s $bin/bin/$name $out";
|
||||||
in
|
in
|
||||||
script // { inherit bin bashCompletion; }
|
script // { inherit bin bash-completion; }
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ bashCompletion
|
{ bash-completion
|
||||||
, buildToolbox
|
, buildToolbox
|
||||||
, cabal-install
|
, cabal-install
|
||||||
, checkedShellScript
|
, checkedShellScript
|
||||||
|
|||||||
@@ -48,14 +48,14 @@ lib.overrideDerivation postgrest.env (
|
|||||||
''
|
''
|
||||||
export HISTFILE=.history
|
export HISTFILE=.history
|
||||||
|
|
||||||
source ${pkgs.bashCompletion}/etc/profile.d/bash_completion.sh
|
source ${pkgs.bash-completion}/etc/profile.d/bash_completion.sh
|
||||||
source ${pkgs.git}/share/git/contrib/completion/git-completion.bash
|
source ${pkgs.git}/share/git/contrib/completion/git-completion.bash
|
||||||
source ${postgrest.hsie.bashCompletion}
|
source ${postgrest.hsie.bash-completion}
|
||||||
|
|
||||||
''
|
''
|
||||||
+ builtins.concatStringsSep "\n" (
|
+ builtins.concatStringsSep "\n" (
|
||||||
builtins.map (bashCompletion: "source ${bashCompletion}") (
|
builtins.map (bash-completion: "source ${bash-completion}") (
|
||||||
builtins.concatLists (builtins.map (toolbox: toolbox.bashCompletion) toolboxes)
|
builtins.concatLists (builtins.map (toolbox: toolbox.bash-completion) toolboxes)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user