Unverified Commit e355174a authored by Sefa Eyeoglu's avatar Sefa Eyeoglu
Browse files

vencord: add discord tests

parent a259f0f1
Loading
Loading
Loading
Loading
+27 −17
Original line number Diff line number Diff line
@@ -9,6 +9,10 @@
  pnpm_10,
  stdenv,
  writeShellScript,
  discord,
  discord-ptb,
  discord-canary,
  discord-development,
  buildWebExtension ? false,
}:

@@ -58,9 +62,10 @@ stdenv.mkDerivation (finalAttrs: {
    runHook postInstall
  '';

  passthru = {
    # We need to fetch the latest *tag* ourselves, as nix-update can only fetch the latest *releases* from GitHub
    # Vencord had a single "devbuild" release that we do not care about
  passthru.updateScript = writeShellScript "update-vencord" ''
    updateScript = writeShellScript "update-vencord" ''
      export PATH="${
        lib.makeBinPath [
          curl
@@ -76,6 +81,11 @@ stdenv.mkDerivation (finalAttrs: {
      exec nix-update --version "$latestTag" "$@"
    '';

    tests = lib.genAttrs' [ discord discord-ptb discord-canary discord-development ] (
      p: lib.nameValuePair p.pname p.tests.withVencord
    );
  };

  meta = {
    description = "Cutest Discord client mod";
    homepage = "https://github.com/Vendicated/Vencord";