sublime4: drop openssl_1_1 (#531298)

This commit is contained in:
Matt Sturgeon
2026-06-24 00:11:20 +00:00
committed by GitHub
+14 -3
View File
@@ -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)" \
@@ -221,11 +223,20 @@ stdenv.mkDerivation (finalAttrs: {
demin-dmitriy
zimbatm
];
mainProgram = "subl";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree;
platforms = [
"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.";
};
};
})