Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jetbrains: fetch brokenPlugins from Wayback Machine #384668

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion pkgs/applications/editors/jetbrains/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ To test the build process of every IDE (as well as the process for adding plugin
- Run these commands respectively:
- `nix build .#jetbrains.idea-community-src.src.src && ./source/build_maven.py source/idea_maven_artefacts.json result/` for IDEA
- `nix build .#jetbrains.pycharm-community-src.src.src && ./source/build_maven.py source/pycharm_maven_artefacts.json result/` for PyCharm
- Update `source/brokenPlugins.json` (from https://plugins.jetbrains.com/files/brokenPlugins.json)
- Update `brokenPlugins` timestamp and hash (from https://web.archive.org/web/*/https://plugins.jetbrains.com/files/brokenPlugins.json)
- Do a test build
- If it succeeds, make a commit
- Run ./plugins/update_plugins.py, this will update plugins and automatically commit them
Expand Down

This file was deleted.

7 changes: 6 additions & 1 deletion pkgs/applications/editors/jetbrains/source/build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ let
stripRoot = false;
};

brokenPlugins = fetchurl {
url = "https://web.archive.org/web/20250224030717id_/https://downloads.marketplace.jetbrains.com/files/brokenPlugins.json";
hash = "sha256-0U8BeJ5lCMtYNswVZCAyvRkYK3o4+J+iF/LiAzzShi0=";
};

in
stdenvNoCC.mkDerivation rec {
pname = "${buildType}-community";
Expand Down Expand Up @@ -248,7 +253,7 @@ stdenvNoCC.mkDerivation rec {
--replace-fail 'JDK_PATH_HERE' '${jbr}/lib/openjdk'
substituteInPlace \
platform/build-scripts/src/org/jetbrains/intellij/build/impl/brokenPlugins.kt \
--replace-fail 'BROKEN_PLUGINS_HERE' '${./brokenPlugins.json}'
--replace-fail 'BROKEN_PLUGINS_HERE' '${brokenPlugins}'
substituteInPlace \
platform/build-scripts/src/org/jetbrains/intellij/build/impl/LinuxDistributionBuilder.kt \
--replace-fail 'XPLAT_LAUNCHER_PREBUILT_PATH_HERE' '${xplat-launcher}'
Expand Down