From cea11ca729385c96d7d0d4e6b3dabfc1638a4647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20=22Capypara=22=20K=C3=B6pcke?= Date: Mon, 22 Dec 2025 23:20:34 +0100 Subject: [PATCH] jetbrains.*-oss: replace brokenPlugins.json with an empty list --- pkgs/applications/editors/jetbrains/readme.md | 1 - .../editors/jetbrains/source/brokenPlugins.json | 1 + pkgs/applications/editors/jetbrains/source/build.nix | 10 ++++------ 3 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 pkgs/applications/editors/jetbrains/source/brokenPlugins.json diff --git a/pkgs/applications/editors/jetbrains/readme.md b/pkgs/applications/editors/jetbrains/readme.md index 7ba775e7f455..43744856818e 100644 --- a/pkgs/applications/editors/jetbrains/readme.md +++ b/pkgs/applications/editors/jetbrains/readme.md @@ -42,7 +42,6 @@ fetchurl { - Run these commands respectively: - `nix build .#jetbrains.idea-oss.src.src && ./source/build_maven.py source/idea_maven_artefacts.json result/` for IDEA - `nix build .#jetbrains.pycharm-oss.src.src && ./source/build_maven.py source/pycharm_maven_artefacts.json result/` for PyCharm - - Update `brokenPlugins` timestamp and hash (from https://web.archive.org/web/*/https://plugins.jetbrains.com/files/brokenPlugins.json) - Make sure the Kotlin version used is correct. - Check the recommended Kotlin version in `.idea/kotlinc.xml` in the IDEA source root - Do a test build diff --git a/pkgs/applications/editors/jetbrains/source/brokenPlugins.json b/pkgs/applications/editors/jetbrains/source/brokenPlugins.json new file mode 100644 index 000000000000..fe51488c7066 --- /dev/null +++ b/pkgs/applications/editors/jetbrains/source/brokenPlugins.json @@ -0,0 +1 @@ +[] diff --git a/pkgs/applications/editors/jetbrains/source/build.nix b/pkgs/applications/editors/jetbrains/source/build.nix index f7ff7a72cc8f..84ee92265ac4 100644 --- a/pkgs/applications/editors/jetbrains/source/build.nix +++ b/pkgs/applications/editors/jetbrains/source/build.nix @@ -230,11 +230,6 @@ let stripRoot = false; }; - brokenPlugins = fetchurl { - url = "https://web.archive.org/web/20251222154957im_/https://downloads.marketplace.jetbrains.com/files/brokenPlugins.json"; - hash = "sha256-Q46zOp5HiY7R8OV3odz5kOybKaLKhzb9rrxnUtEFNZo="; - }; - in stdenvNoCC.mkDerivation rec { pname = "${buildType}-oss"; @@ -254,6 +249,9 @@ stdenvNoCC.mkDerivation rec { ../patches/bump-jackson-core-in-source.patch ]; + # Regarding brokenPlugins.json: + # We provide an empty brokenPlugins.json because the original file is 2.8 MB in size and can't be reliably + # downloaded without hash changes. The file is not important for the IDEs to function properly. postPatch = '' cp ${restarter}/bin/restarter bin/linux/amd64/restarter cp ${fsnotifier}/bin/fsnotifier bin/linux/amd64/fsnotifier @@ -268,7 +266,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}' + --replace-fail 'BROKEN_PLUGINS_HERE' '${./brokenPlugins.json}' substituteInPlace \ platform/build-scripts/src/org/jetbrains/intellij/build/impl/LinuxDistributionBuilder.kt \ --replace-fail 'XPLAT_LAUNCHER_PREBUILT_PATH_HERE' '${xplat-launcher}'