From 2d9594542048490cf2206386f85a03e49420bf52 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 22 May 2021 20:24:28 +0200 Subject: [PATCH] sublime3: remove updateScript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sublime 3 is EOL and the latest version file now points to sublime text 4 releases so let’s remove the update script. --- .../applications/editors/sublime/3/common.nix | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/pkgs/applications/editors/sublime/3/common.nix b/pkgs/applications/editors/sublime/3/common.nix index cc8b835c137c..e353f4f5652f 100644 --- a/pkgs/applications/editors/sublime/3/common.nix +++ b/pkgs/applications/editors/sublime/3/common.nix @@ -2,7 +2,6 @@ { fetchurl, lib, stdenv, xorg, glib, glibcLocales, gtk3, cairo, pango, libredirect, makeWrapper, wrapGAppsHook , pkexecPath ? "/run/wrappers/bin/pkexec" -, writeScript, common-updater-scripts, curl, gnugrep , openssl, bzip2, bash, unzip, zip }: @@ -128,26 +127,6 @@ in stdenv.mkDerivation (rec { done ''; - passthru.updateScript = writeScript "${pname}-update-script" '' - #!${stdenv.shell} - set -o errexit - PATH=${lib.makeBinPath [ common-updater-scripts curl gnugrep ]} - - latestVersion=$(curl -s ${versionUrl}) - - if [[ "${buildVersion}" = "$latestVersion" ]]; then - echo "The new version same as the old version." - exit 0 - fi - - for platform in ${lib.concatStringsSep " " meta.platforms}; do - # The script will not perform an update when the version attribute is up to date from previous platform run - # We need to clear it before each run - update-source-version ${packageAttribute}.${primaryBinary} 0 0000000000000000000000000000000000000000000000000000000000000000 --file=${versionFile} --version-key=buildVersion --system=$platform - update-source-version ${packageAttribute}.${primaryBinary} $latestVersion --file=${versionFile} --version-key=buildVersion --system=$platform - done - ''; - meta = with lib; { description = "Sophisticated text editor for code, markup and prose"; homepage = "https://www.sublimetext.com/";