Skip to content

Commit aa6efd8

Browse files
wezterm: run ssh tests on linux (#385033)
2 parents 657b2f8 + 94165c2 commit aa6efd8

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

pkgs/by-name/we/wezterm/package.nix

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,21 @@ rustPlatform.buildRustPackage rec {
3939
hash = "sha256-KKfGB1vM8ytpNieWD6CHD5zVyUe17tFAegZFzLx7QfE=";
4040
};
4141

42-
postPatch = ''
43-
echo ${version} > .tag
44-
45-
# tests are failing with: Unable to exchange encryption keys
46-
rm -r wezterm-ssh/tests
47-
48-
# hash does not work well with NixOS
49-
substituteInPlace assets/shell-integration/wezterm.sh \
50-
--replace-fail 'hash wezterm 2>/dev/null' 'command type -P wezterm &>/dev/null' \
51-
--replace-fail 'hash base64 2>/dev/null' 'command type -P base64 &>/dev/null' \
52-
--replace-fail 'hash hostname 2>/dev/null' 'command type -P hostname &>/dev/null' \
53-
--replace-fail 'hash hostnamectl 2>/dev/null' 'command type -P hostnamectl &>/dev/null'
54-
'';
42+
postPatch =
43+
''
44+
echo ${version} > .tag
45+
46+
# hash does not work well with NixOS
47+
substituteInPlace assets/shell-integration/wezterm.sh \
48+
--replace-fail 'hash wezterm 2>/dev/null' 'command type -P wezterm &>/dev/null' \
49+
--replace-fail 'hash base64 2>/dev/null' 'command type -P base64 &>/dev/null' \
50+
--replace-fail 'hash hostname 2>/dev/null' 'command type -P hostname &>/dev/null' \
51+
--replace-fail 'hash hostnamectl 2>/dev/null' 'command type -P hostnamectl &>/dev/null'
52+
''
53+
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
54+
# many tests fail with: No such file or directory
55+
rm -r wezterm-ssh/tests
56+
'';
5557

5658
cargoHash = "sha256-WyQYmRNlabJaCTJm7Cn9nkXfOGAcOHwhoD9vmEggrDw=";
5759
useFetchCargoVendor = true;

0 commit comments

Comments
 (0)