2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, lib, callPackage, fetchurl, isInsiders ? false }:
|
2019-05-21 20:17:01 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
|
|
|
|
plat = {
|
2019-08-13 23:52:01 +02:00
|
|
|
x86_64-linux = "linux-x64";
|
|
|
|
x86_64-darwin = "darwin";
|
2020-12-16 17:40:14 +01:00
|
|
|
aarch64-linux = "linux-arm64";
|
2021-07-11 22:51:17 +02:00
|
|
|
aarch64-darwin = "darwin-arm64";
|
2020-12-16 17:40:14 +01:00
|
|
|
armv7l-linux = "linux-armhf";
|
2019-05-21 20:17:01 +02:00
|
|
|
}.${system};
|
|
|
|
|
2021-07-11 22:51:17 +02:00
|
|
|
archive_fmt = if stdenv.isDarwin then "zip" else "tar.gz";
|
2019-05-21 20:17:01 +02:00
|
|
|
|
|
|
|
sha256 = {
|
2022-03-11 01:12:56 +01:00
|
|
|
x86_64-linux = "0x8vc6gj83mn767wi285k0hxhlh5gh1lcvq63na89vglja4ipna4";
|
|
|
|
x86_64-darwin = "1x47xfq0fgd10wq6aa8gq55aqrl1ir1f6v1mm6324yny16pf20k2";
|
|
|
|
aarch64-linux = "1ibg2qvpnwfwwzgby2xva9xz138b13x9q8vf1xf6plazv0arla1l";
|
|
|
|
aarch64-darwin = "100834mqix7b46frlqf0jz4qs673lavxm8sizfjm7c9y0xxy4ld3";
|
|
|
|
armv7l-linux = "100yfkzvnjccp1g3p353jr2vicvkjc0skiwmmzgad6i8j1m9js62";
|
2019-05-21 20:17:01 +02:00
|
|
|
}.${system};
|
|
|
|
in
|
|
|
|
callPackage ./generic.nix rec {
|
2020-04-01 06:36:58 +02:00
|
|
|
# Please backport all compatible updates to the stable release.
|
|
|
|
# This is important for the extension ecosystem.
|
2022-03-11 01:12:56 +01:00
|
|
|
version = "1.65.2";
|
2019-05-21 20:17:01 +02:00
|
|
|
pname = "vscode";
|
|
|
|
|
|
|
|
executableName = "code" + lib.optionalString isInsiders "-insiders";
|
|
|
|
longName = "Visual Studio Code" + lib.optionalString isInsiders " - Insiders";
|
|
|
|
shortName = "Code" + lib.optionalString isInsiders " - Insiders";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
name = "VSCode_${version}_${plat}.${archive_fmt}";
|
2021-03-24 15:24:12 +01:00
|
|
|
url = "https://update.code.visualstudio.com/${version}/${plat}/stable";
|
2019-05-21 20:17:01 +02:00
|
|
|
inherit sha256;
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "";
|
|
|
|
|
2021-08-19 12:30:37 +02:00
|
|
|
updateScript = ./update-vscode.sh;
|
2021-05-24 21:46:44 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-21 20:17:01 +02:00
|
|
|
description = ''
|
|
|
|
Open source source code editor developed by Microsoft for Windows,
|
|
|
|
Linux and macOS
|
|
|
|
'';
|
2021-04-27 16:03:07 +02:00
|
|
|
mainProgram = "code";
|
2019-05-21 20:17:01 +02:00
|
|
|
longDescription = ''
|
|
|
|
Open source source code editor developed by Microsoft for Windows,
|
|
|
|
Linux and macOS. It includes support for debugging, embedded Git
|
|
|
|
control, syntax highlighting, intelligent code completion, snippets,
|
|
|
|
and code refactoring. It is also customizable, so users can change the
|
|
|
|
editor's theme, keyboard shortcuts, and preferences
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://code.visualstudio.com/";
|
|
|
|
downloadPage = "https://code.visualstudio.com/Updates";
|
2019-05-21 20:17:01 +02:00
|
|
|
license = licenses.unfree;
|
2021-11-19 14:01:01 +01:00
|
|
|
maintainers = with maintainers; [ eadwu synthetica maxeaubrey bobby285271 ];
|
2021-07-11 22:51:17 +02:00
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" "armv7l-linux" ];
|
2019-05-21 20:17:01 +02:00
|
|
|
};
|
|
|
|
}
|