Browse Source

sublime{3,-merge}: simplify code

pleroma
Jan Tojnar 3 years ago
parent
commit
b75a43f9e0
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4
  1. 4
      pkgs/applications/editors/sublime/3/common.nix
  2. 4
      pkgs/applications/version-management/sublime-merge/common.nix

4
pkgs/applications/editors/sublime/3/common.nix

@ -13,9 +13,8 @@ let
primaryBinary = "sublime_text";
primaryBinaryAliases = [ "subl" "sublime" "sublime3" ];
downloadUrl = "https://download.sublimetext.com/sublime_text_3_build_${buildVersion}_${arch}.tar.bz2";
downloadArchiveType = "tar.bz2";
versionUrl = "https://www.sublimetext.com/${if dev then "3dev" else "3"}";
versionFile = "pkgs/applications/editors/sublime/3/packages.nix";
versionFile = builtins.toString ./packages.nix;
archSha256 =
if stdenv.hostPlatform.system == "i686-linux" then
x32sha256
@ -35,7 +34,6 @@ in let
version = buildVersion;
src = fetchurl {
name = "${pname}-bin-${buildVersion}.${downloadArchiveType}";
url = downloadUrl;
sha256 = archSha256;
};

4
pkgs/applications/version-management/sublime-merge/common.nix

@ -12,9 +12,8 @@ let
primaryBinary = "sublime_merge";
primaryBinaryAliases = [ "smerge" ];
downloadUrl = "https://download.sublimetext.com/sublime_merge_build_${buildVersion}_${arch}.tar.xz";
downloadArchiveType = "tar.xz";
versionUrl = "https://www.sublimemerge.com/${if dev then "dev" else "download"}";
versionFile = "pkgs/applications/version-management/sublime-merge/default.nix";
versionFile = builtins.toString ./default.nix;
archSha256 = sha256;
arch = "x64";
@ -26,7 +25,6 @@ in let
version = buildVersion;
src = fetchurl {
name = "${pname}-bin-${buildVersion}.${downloadArchiveType}";
url = downloadUrl;
sha256 = archSha256;
};

Loading…
Cancel
Save