sublime{3,-merge}: simplify code
This commit is contained in:
parent
9819cc2ca6
commit
b75a43f9e0
@ -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;
|
||||
};
|
||||
|
@ -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…
Reference in New Issue
Block a user