Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion nixos/modules/programs/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ in
name = "fish_patched-completion-generator";
srcs = [
"${cfg.package}/share/fish/tools/create_manpage_completions.py"
"${cfg.package}/share/fish/tools/deroff.py"
];
unpackCmd = "cp $curSrc $(basename $curSrc)";
sourceRoot = ".";
Expand Down
2 changes: 1 addition & 1 deletion nixos/tests/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
machine.wait_for_file("/etc/fish/generated_completions/coreutils.fish")
machine.wait_for_file("/etc/fish/generated_completions/kill.fish")
machine.succeed(
"fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/completions /etc/fish/generated_completions /root/.cache/fish/generated_completions$'"
"fish -ic 'echo $fish_complete_path' | grep -q '/share/fish/vendor_completions.d /etc/fish/generated_completions /root/.cache/fish/generated_completions$'"
)
'';
}
10 changes: 5 additions & 5 deletions pkgs/by-name/fi/fish/nix-darwin-path.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff --git a/share/config.fish b/share/config.fish
index d85fd1e185..c564e45b27 100644
index 73148ac25..1964e30be 100644
--- a/share/config.fish
+++ b/share/config.fish
@@ -158,6 +158,7 @@
@@ -175,6 +175,7 @@ and __fish_set_locale
#
if status --is-login
if command -sq /usr/libexec/path_helper
+ and not set -q __NIX_DARWIN_SET_ENVIRONMENT_DONE
# Adapt construct_path from the macOS /usr/libexec/path_helper
# executable for fish; see
# https://opensource.apple.com/source/shell_cmds/shell_cmds-203/path_helper/path_helper.c.auto.html .
__fish_macos_set_env PATH /etc/paths '/etc/paths.d'
if test -n "$MANPATH"
__fish_macos_set_env MANPATH /etc/manpaths '/etc/manpaths.d'
20 changes: 9 additions & 11 deletions pkgs/by-name/fi/fish/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
glibcLocales,
gnused,
gnugrep,
groff,
gawk,
man-db,
ninja,
Expand Down Expand Up @@ -152,13 +151,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "fish";
version = "4.1.2";
version = "4.2.0";

src = fetchFromGitHub {
owner = "fish-shell";
repo = "fish-shell";
tag = finalAttrs.version;
hash = "sha256-oNRC1NWYE0LEK2a/7nHtlmp20f8hn/1FZgaySqzwSbg=";
hash = "sha256-t5whU+byERJ+nDLigJ5IznvEg3MUsVqhpGdWFzF+T4Q=";
};

env = {
Expand All @@ -169,7 +168,7 @@ stdenv.mkDerivation (finalAttrs: {

cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) src patches;
hash = "sha256-7mYWCHH6DBWTIJV8GPRjjf6QulwlYjwv0slablDvBF8=";
hash = "sha256-4pDbD7hetN7wGdPr2csgVWsqtYKMj6jpYm7zBKra+bU=";
};

patches = [
Expand All @@ -192,13 +191,15 @@ stdenv.mkDerivation (finalAttrs: {

# Fix FHS paths in tests
postPatch = ''
substituteInPlace src/builtins/tests/test_tests.rs \
substituteInPlace src/builtins/test.rs \
--replace-fail '"/bin/ls"' '"${lib.getExe' coreutils "ls"}"'

substituteInPlace src/highlight/tests.rs \
substituteInPlace src/highlight/highlight.rs \
--replace-fail '"/bin/echo"' '"${lib.getExe' coreutils "echo"}"' \
--replace-fail '"/bin/c"' '"${lib.getExe' coreutils "c"}"' \
--replace-fail '"/bin/ca"' '"${lib.getExe' coreutils "ca"}"' \
--replace-fail '"/bin/ca"' '"${lib.getExe' coreutils "ca"}"'

substituteInPlace src/highlight/file_tester.rs \
--replace-fail '/usr' '/'

substituteInPlace tests/checks/cd.fish \
Expand Down Expand Up @@ -296,7 +297,6 @@ stdenv.mkDerivation (finalAttrs: {
coreutils
gnugrep
gnused
groff
gettext
]
++ lib.optional (!stdenv.hostPlatform.isDarwin) man-db;
Expand Down Expand Up @@ -342,9 +342,6 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace "$out/share/fish/functions/grep.fish" \
--replace-fail "command grep" "command ${lib.getExe gnugrep}"

substituteInPlace "$out/share/fish/functions/__fish_print_help.fish" \
--replace-fail "nroff" "${lib.getExe' groff "nroff"}"

substituteInPlace $out/share/fish/completions/{sudo.fish,doas.fish} \
--replace-fail "/usr/local/sbin /sbin /usr/sbin" ""
''
Expand Down Expand Up @@ -386,6 +383,7 @@ stdenv.mkDerivation (finalAttrs: {
winter
sigmasquadron
rvdp
lonerOrz
];
mainProgram = "fish";
};
Expand Down
7 changes: 7 additions & 0 deletions pkgs/by-name/ki/kitty/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
makeBinaryWrapper,
autoSignDarwinBinariesHook,
cairo,
fetchpatch,
}:

with python3Packages;
Expand Down Expand Up @@ -141,6 +142,12 @@ buildPythonApplication rec {
# Skip `test_ssh_bootstrap_with_different_launchers` when launcher is `zsh` since it causes:
# OSError: master_fd is in error condition
./disable-test_ssh_bootstrap_with_different_launchers.patch

# Fix timeout issue in Fish integration tests after recent Fish release
(fetchpatch {
url = "https://github.com/kovidgoyal/kitty/commit/456fa8691a94f99fae0cef7f19dd2c85c208445a.patch";
hash = "sha256-WLPodki5cA9Y3pcVwSV7EUmLEGGXkJDYX1MsHIzPk2s=";
})
];

hardeningDisable = [
Expand Down
Loading