From 76f58eeb64e422042124d8b86c7bfdebcdf6bd2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sat, 13 Jun 2026 11:07:09 +0200 Subject: [PATCH] sublime4: drop openssl_1_1, mark currently stable sublime4 as broken Co-authored-by: Jan Tojnar --- pkgs/applications/editors/sublime/4/common.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/sublime/4/common.nix b/pkgs/applications/editors/sublime/4/common.nix index 6e29d6cd5d0a..1e93b6a0d41e 100644 --- a/pkgs/applications/editors/sublime/4/common.nix +++ b/pkgs/applications/editors/sublime/4/common.nix @@ -6,6 +6,7 @@ }: { + config, fetchurl, stdenv, lib, @@ -22,7 +23,6 @@ writeShellScript, common-updater-scripts, curl, - openssl_1_1, openssl_3_5, bzip2, sqlite, @@ -33,7 +33,6 @@ let packageAttribute = "sublime4${lib.optionalString dev "-dev"}"; binaries = [ "sublime_text" - "plugin_host-3.3" "plugin_host-3.${if lib.versionAtLeast buildVersion "4205" then "14" else "8"}" crashHandlerBinary ]; @@ -55,7 +54,6 @@ let libxtst glib libglvnd - openssl_1_1 gtk3 cairo pango @@ -88,6 +86,10 @@ let buildPhase = '' runHook preBuild + # Remove old plugin host because it depends on EOL openssl 1.1 + rm plugin_host-3.3 + echo '{"disable_plugin_host_3.3": true}' > Packages/Preferences.sublime-settings + for binary in ${builtins.concatStringsSep " " binaries}; do patchelf \ --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ @@ -228,5 +230,13 @@ stdenv.mkDerivation (finalAttrs: { "aarch64-linux" "x86_64-linux" ]; + # FIXME: gated behind allowAliases to workaround https://github.com/NixOS/nixpkgs/issues/523712 + problems = + lib.optionalAttrs config.allowAliases { + removal.message = "We have removed Python 3.3 package support ahead of upstream schedule but if you do not use any old packages, this should just work."; + } + // lib.optionalAttrs (lib.versionOlder buildVersion "4205") { + broken.message = "Packages, including core ones, do not run without plug-in host depending on insecure OpenSSL."; + }; }; })