Merge master into staging-next
This commit is contained in:
@@ -19,6 +19,9 @@
|
||||
, fishPlugins
|
||||
, procps
|
||||
|
||||
# used to generate autocompletions from manpages and for configuration editing in the browser
|
||||
, usePython ? true
|
||||
|
||||
, runCommand
|
||||
, writeText
|
||||
, nixosTests
|
||||
@@ -200,12 +203,10 @@ let
|
||||
'';
|
||||
|
||||
# Required binaries during execution
|
||||
# Python: Autocompletion generated from manpages and config editing
|
||||
propagatedBuildInputs = [
|
||||
coreutils
|
||||
gnugrep
|
||||
gnused
|
||||
python3
|
||||
groff
|
||||
gettext
|
||||
] ++ lib.optional (!stdenv.isDarwin) man-db;
|
||||
@@ -237,14 +238,13 @@ let
|
||||
"$out/share/fish/functions/__fish_print_help.fish"
|
||||
sed -e "s|clear;|${getBin ncurses}/bin/clear;|" \
|
||||
-i "$out/share/fish/functions/fish_default_key_bindings.fish"
|
||||
sed -e "s|python3|${getBin python3}/bin/python3|" \
|
||||
-i $out/share/fish/functions/{__fish_config_interactive.fish,fish_config.fish,fish_update_completions.fish}
|
||||
sed -i "s|/usr/local/sbin /sbin /usr/sbin||" \
|
||||
$out/share/fish/completions/{sudo.fish,doas.fish}
|
||||
sed -e "s| awk | ${gawk}/bin/awk |" \
|
||||
-i $out/share/fish/functions/{__fish_print_packages.fish,__fish_print_addresses.fish,__fish_describe_command.fish,__fish_complete_man.fish,__fish_complete_convert_options.fish} \
|
||||
$out/share/fish/completions/{cwebp,adb,ezjail-admin,grunt,helm,heroku,lsusb,make,p4,psql,rmmod,vim-addons}.fish
|
||||
|
||||
'' + optionalString usePython ''
|
||||
cat > $out/share/fish/functions/__fish_anypython.fish <<EOF
|
||||
function __fish_anypython
|
||||
echo ${python3.interpreter}
|
||||
|
||||
26
pkgs/shells/hilbish/default.nix
Normal file
26
pkgs/shells/hilbish/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, readline }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "hilbish";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Hilbis";
|
||||
repo = "Hilbish";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-7YJkjkA6lGyO4PwJcdeUzqQvFsslDfIqAH6vlBtyYz8=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-9FftzTn5nxjfsHStcnrn9a+sECmcHRBUEtFjsMp8/ks=";
|
||||
|
||||
buildInputs = [ readline ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An interactive Unix-like shell written in Go";
|
||||
changelog = "https://github.com/Hilbis/Hilbish/releases/tag/v${version}";
|
||||
homepage = "https://github.com/Hilbis/Hilbish";
|
||||
maintainers = with maintainers; [ fortuneteller2k ];
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux; # only officially supported on Linux
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user