Unverified Commit aa6efd8e authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

wezterm: run ssh tests on linux (#385033)

parents 657b2f8c 94165c2f
Loading
Loading
Loading
Loading
+15 −13
Original line number Diff line number Diff line
@@ -39,18 +39,20 @@ rustPlatform.buildRustPackage rec {
    hash = "sha256-KKfGB1vM8ytpNieWD6CHD5zVyUe17tFAegZFzLx7QfE=";
  };

  postPatch = ''
  postPatch =
    ''
      echo ${version} > .tag

    # tests are failing with: Unable to exchange encryption keys
    rm -r wezterm-ssh/tests

      # hash does not work well with NixOS
      substituteInPlace assets/shell-integration/wezterm.sh \
        --replace-fail 'hash wezterm 2>/dev/null' 'command type -P wezterm &>/dev/null' \
        --replace-fail 'hash base64 2>/dev/null' 'command type -P base64 &>/dev/null' \
        --replace-fail 'hash hostname 2>/dev/null' 'command type -P hostname &>/dev/null' \
        --replace-fail 'hash hostnamectl 2>/dev/null' 'command type -P hostnamectl &>/dev/null'
    ''
    + lib.optionalString stdenv.hostPlatform.isDarwin ''
      # many tests fail with: No such file or directory
      rm -r wezterm-ssh/tests
    '';

  cargoHash = "sha256-WyQYmRNlabJaCTJm7Cn9nkXfOGAcOHwhoD9vmEggrDw=";