tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
wezterm: run ssh tests on linux
Sandro Jäckel
1 year ago
94165c2f
e559756f
+14
-12
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
we
wezterm
package.nix
+14
-12
pkgs/by-name/we/wezterm/package.nix
···
39
39
hash = "sha256-KKfGB1vM8ytpNieWD6CHD5zVyUe17tFAegZFzLx7QfE=";
40
40
};
41
41
42
42
-
postPatch = ''
43
43
-
echo ${version} > .tag
42
42
+
postPatch =
43
43
+
''
44
44
+
echo ${version} > .tag
44
45
45
45
-
# tests are failing with: Unable to exchange encryption keys
46
46
-
rm -r wezterm-ssh/tests
47
47
-
48
48
-
# hash does not work well with NixOS
49
49
-
substituteInPlace assets/shell-integration/wezterm.sh \
50
50
-
--replace-fail 'hash wezterm 2>/dev/null' 'command type -P wezterm &>/dev/null' \
51
51
-
--replace-fail 'hash base64 2>/dev/null' 'command type -P base64 &>/dev/null' \
52
52
-
--replace-fail 'hash hostname 2>/dev/null' 'command type -P hostname &>/dev/null' \
53
53
-
--replace-fail 'hash hostnamectl 2>/dev/null' 'command type -P hostnamectl &>/dev/null'
54
54
-
'';
46
46
+
# hash does not work well with NixOS
47
47
+
substituteInPlace assets/shell-integration/wezterm.sh \
48
48
+
--replace-fail 'hash wezterm 2>/dev/null' 'command type -P wezterm &>/dev/null' \
49
49
+
--replace-fail 'hash base64 2>/dev/null' 'command type -P base64 &>/dev/null' \
50
50
+
--replace-fail 'hash hostname 2>/dev/null' 'command type -P hostname &>/dev/null' \
51
51
+
--replace-fail 'hash hostnamectl 2>/dev/null' 'command type -P hostnamectl &>/dev/null'
52
52
+
''
53
53
+
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
54
54
+
# many tests fail with: No such file or directory
55
55
+
rm -r wezterm-ssh/tests
56
56
+
'';
55
57
56
58
cargoHash = "sha256-WyQYmRNlabJaCTJm7Cn9nkXfOGAcOHwhoD9vmEggrDw=";
57
59
useFetchCargoVendor = true;