0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

jetbrains: fetch brokenPlugins from Wayback Machine

This commit is contained in:
Robert Schütz 2025-02-23 19:21:13 -08:00
parent f3fefcd462
commit bb57c7704e
3 changed files with 7 additions and 3 deletions

View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -219,6 +219,11 @@ let
stripRoot = false;
};
brokenPlugins = fetchurl {
url = "https://web.archive.org/web/20250224030717if_/https://downloads.marketplace.jetbrains.com/files/brokenPlugins.json";
hash = "sha256-l3qy9ixYsHqZZ9kk1r2fA4GomaJsLaM/T48VaL5ZJr8=";
};
in
stdenvNoCC.mkDerivation rec {
pname = "${buildType}-community";
@ -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}'