From 5cf4258201a6f4d2dbae94b2274daa10897c4ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Sat, 13 Jun 2026 10:43:10 +0200 Subject: [PATCH] sublime: drop --- pkgs/by-name/su/sublime/package.nix | 88 ----------------------------- pkgs/top-level/aliases.nix | 1 + 2 files changed, 1 insertion(+), 88 deletions(-) delete mode 100644 pkgs/by-name/su/sublime/package.nix diff --git a/pkgs/by-name/su/sublime/package.nix b/pkgs/by-name/su/sublime/package.nix deleted file mode 100644 index 071b89b45353..000000000000 --- a/pkgs/by-name/su/sublime/package.nix +++ /dev/null @@ -1,88 +0,0 @@ -{ - fetchurl, - lib, - stdenv, - glib, - libx11, - cairo, - gtk2, - makeDesktopItem, -}: -let - libPath = lib.makeLibraryPath [ - glib - libx11 - gtk2 - cairo - ]; -in - -stdenv.mkDerivation rec { - pname = "sublimetext"; - version = "2.0.2"; - - src = - if stdenv.hostPlatform.system == "i686-linux" then - fetchurl { - name = "sublimetext-${version}.tar.bz2"; - urls = [ - "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20${version}.tar.bz2" - "https://download.sublimetext.com/Sublime%20Text%20${version}.tar.bz2" - ]; - sha256 = "026g5mppk28lzzzn9ibykcqkrd5msfmg0sc0z8w8jd7v3h28wcq7"; - } - else - fetchurl { - name = "sublimetext-${version}.tar.bz2"; - urls = [ - "http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20${version}.tar.bz2" - "https://download.sublimetext.com/Sublime%20Text%20${version}%20x64.tar.bz2" - ]; - sha256 = "115b71nbv9mv8cz6bkjwpbdf2ywnjc1zy2d3080f6ck4sqqfvfh1"; - }; - buildCommand = '' - tar xvf ${src} - mkdir -p $out/bin - mv Sublime* $out/sublime - ln -s $out/sublime/sublime_text $out/bin/sublime - ln -s $out/sublime/sublime_text $out/bin/sublime2 - - echo ${libPath} - patchelf \ - --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ - --set-rpath ${libPath}:${lib.getLib stdenv.cc.cc}/lib${lib.optionalString stdenv.hostPlatform.is64bit "64"} \ - $out/sublime/sublime_text - - mkdir -p $out/share/icons - - for x in $(ls $out/sublime/Icon); do - mkdir -p $out/share/icons/hicolor/$x/apps - cp -v $out/sublime/Icon/$x/* $out/share/icons/hicolor/$x/apps - done - - ln -sv "${desktopItem}/share/applications" $out/share - ''; - - desktopItem = makeDesktopItem { - name = "sublime2"; - exec = "sublime2 %F"; - comment = meta.description; - desktopName = "Sublime Text"; - genericName = "Text Editor"; - categories = [ - "TextEditor" - "Development" - ]; - icon = "sublime_text"; - }; - - meta = { - description = "Sophisticated text editor for code, markup and prose"; - license = lib.licenses.unfree; - sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; - platforms = [ - "x86_64-linux" - "i686-linux" - ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 244fbb2fdfa1..f12e6e5906fb 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -2072,6 +2072,7 @@ mapAliases { stremio = throw "'stremio' has been removed as it depended on the vulnerable and outdated qt5 webengine. On Linux, consider using 'stremio-linux-shell' instead."; # Added 2026-02-11 stringsWithDeps = warnAlias "'stringsWithDeps' has been removed from pkgs, use `lib.stringsWithDeps` instead" lib.stringsWithDeps; # Added 2025-10-30 subberthehut = throw "'subberthehut' has been removed as it was unmaintained upstream"; # Added 2025-05-17 + sublime = throw "'sublime' (version 2) has been removed as it was unmaintained and broken. Consider using 'sublime3' or 'sublime4' instead."; # Added 2026-06-13 sublime-music = throw "`sublime-music` has been removed because upstream has announced it is no longer maintained. Upstream suggests using `supersonic` instead."; # Added 2025-09-20 substituteAll = throw "`substituteAll` has been removed. Use `replaceVars` instead."; # Added 2025-05-23 substituteAllFiles = throw "`substituteAllFiles` has been removed. Use `replaceVars` for each file instead."; # Added 2025-05-23