push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-bin-output"
{
outputs = [
"out"
"bin"
];
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
mkdir -p bin
echo "echo hello za warudo" > bin/hello
echo "echo amigo me gusta mucho" > bin/amigo
installBin bin/*
# assert it didn't go into $out
[[ ! -f $out/bin/amigo ]]
[[ ! -f $out/bin/hello ]]
cmp bin/amigo ''${!outputBin}/bin/amigo
cmp bin/hello ''${!outputBin}/bin/hello
touch $out
''

View File

@@ -0,0 +1,21 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-bin"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
mkdir -p bin
echo "echo hello za warudo" > bin/hello
echo "echo amigo me gusta mucho" > bin/amigo
installBin bin/*
cmp bin/amigo $out/bin/amigo
cmp bin/hello $out/bin/hello
''

View File

@@ -0,0 +1,30 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-completion-cmd"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
echo foo > foo.bash
echo bar > bar.zsh
echo baz > baz.fish
echo qux > qux.fish
echo buzz > buzz.nu
installShellCompletion \
--cmd foobar --bash foo.bash \
--zsh bar.zsh \
--fish baz.fish --name qux qux.fish \
--nushell --cmd buzzbar buzz.nu
cmp foo.bash $out/share/bash-completion/completions/foobar.bash
cmp bar.zsh $out/share/zsh/site-functions/_foobar
cmp baz.fish $out/share/fish/vendor_completions.d/foobar.fish
cmp qux.fish $out/share/fish/vendor_completions.d/qux
cmp buzz.nu $out/share/nushell/vendor/autoload/buzzbar.nu
''

View File

@@ -0,0 +1,23 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-completion-fifo"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
installShellCompletion \
--bash --name foo.bash <(echo foo) \
--zsh --name _foo <(echo bar) \
--fish --name foo.fish <(echo baz) \
--nushell --name foo.nu <(echo bucks)
[[ $(<$out/share/bash-completion/completions/foo.bash) == foo ]] || { echo "foo.bash comparison failed"; exit 1; }
[[ $(<$out/share/zsh/site-functions/_foo) == bar ]] || { echo "_foo comparison failed"; exit 1; }
[[ $(<$out/share/fish/vendor_completions.d/foo.fish) == baz ]] || { echo "foo.fish comparison failed"; exit 1; }
[[ $(<$out/share/nushell/vendor/autoload/foo.nu) == bucks ]] || { echo "foo.nu comparison failed"; exit 1; }
''

View File

@@ -0,0 +1,24 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-completion-inference"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
echo foo > foo.bash
echo bar > bar.zsh
echo baz > baz.fish
echo buzz > buzz.nu
installShellCompletion foo.bash bar.zsh baz.fish buzz.nu
cmp foo.bash $out/share/bash-completion/completions/foo.bash
cmp bar.zsh $out/share/zsh/site-functions/_bar
cmp baz.fish $out/share/fish/vendor_completions.d/baz.fish
cmp buzz.nu $out/share/nushell/vendor/autoload/buzz.nu
''

View File

@@ -0,0 +1,28 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-completion-name"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
echo foo > foo
echo bar > bar
echo baz > baz
echo bucks > bucks
installShellCompletion \
--bash --name foobar.bash foo \
--zsh --name _foobar bar \
--fish baz \
--nushell --name foobar.nu bucks
cmp foo $out/share/bash-completion/completions/foobar.bash
cmp bar $out/share/zsh/site-functions/_foobar
cmp baz $out/share/fish/vendor_completions.d/baz
cmp bucks $out/share/nushell/vendor/autoload/foobar.nu
''

View File

@@ -0,0 +1,27 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-completion-output"
{
outputs = [
"out"
"bin"
];
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
echo foo > foo
installShellCompletion --bash foo
# assert it didn't go into $out
[[ ! -f $out/share/bash-completion/completions/foo ]]
cmp foo ''${!outputBin:?}/share/bash-completion/completions/foo
touch $out
''

View File

@@ -0,0 +1,32 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-completion"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
echo foo > foo
echo bar > bar
echo baz > baz
echo qux > qux.zsh
echo quux > quux
echo quokka > quokka
installShellCompletion \
--bash foo bar \
--zsh baz qux.zsh \
--fish quux \
--nushell quokka
cmp foo $out/share/bash-completion/completions/foo
cmp bar $out/share/bash-completion/completions/bar
cmp baz $out/share/zsh/site-functions/_baz
cmp qux.zsh $out/share/zsh/site-functions/_qux
cmp quux $out/share/fish/vendor_completions.d/quux
cmp quokka $out/share/nushell/vendor/autoload/quokka
''

View File

@@ -0,0 +1,23 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-manpage-fifo"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
installManPage doc/*
installManPage \
--name foo.1 <(echo foo) \
--name=bar.2 <(echo bar) \
--name baz.3 <(echo baz)
echo "foo" | cmp - $out/share/man/man1/foo.1
echo "bar" | cmp - $out/share/man/man2/bar.2
echo "baz" | cmp - $out/share/man/man3/baz.3
''

View File

@@ -0,0 +1,18 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-manpage"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
echo foo > foo.1
installManPage --name bar.1 foo.1
cmp foo.1 $out/share/man/man1/bar.1
''

View File

@@ -0,0 +1,36 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-manpage-outputs"
{
outputs = [
"out"
"man"
"devman"
];
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
mkdir -p doc
echo foo > doc/foo.1
echo bar > doc/bar.3
installManPage doc/*
# assert they didn't go into $out
[[ ! -f $out/share/man/man1/foo.1 && ! -f $out/share/man/man3/bar.3 ]]
# foo.1 alone went into man
cmp doc/foo.1 ''${!outputMan:?}/share/man/man1/foo.1
[[ ! -f ''${!outputMan:?}/share/man/man3/bar.3 ]]
# bar.3 alone went into devman
cmp doc/bar.3 ''${!outputDevman:?}/share/man/man3/bar.3
[[ ! -f ''${!outputDevman:?}/share/man/man1/foo.1 ]]
touch $out
''

View File

@@ -0,0 +1,26 @@
{
lib,
installShellFiles,
runCommandLocal,
}:
runCommandLocal "install-shell-files--install-manpage"
{
nativeBuildInputs = [ installShellFiles ];
meta.platforms = lib.platforms.all;
}
''
mkdir -p doc
echo foo > doc/foo.1
echo bar > doc/bar.2.gz
echo baz > doc/baz.3
echo buzz > --name.1
installManPage doc/*
installManPage -- --name.1
cmp doc/foo.1 $out/share/man/man1/foo.1
cmp doc/bar.2.gz $out/share/man/man2/bar.2.gz
cmp doc/baz.3 $out/share/man/man3/baz.3
cmp -- --name.1 $out/share/man/man1/--name.1
''