mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
54 lines
1.8 KiB
Nix
54 lines
1.8 KiB
Nix
{ stdenv, lib, callPackage, fetchurl, isInsiders ? false }:
|
|
|
|
let
|
|
inherit (stdenv.hostPlatform) system;
|
|
|
|
plat = {
|
|
"x86_64-linux" = "linux-x64";
|
|
"x86_64-darwin" = "darwin";
|
|
}.${system};
|
|
|
|
archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz";
|
|
|
|
sha256 = {
|
|
"x86_64-linux" = "1ck13xpnfklfc81jd8d5md09fcp0gjypacdqj276mzhr5mig29cd";
|
|
"x86_64-darwin" = "0xpzm372swv0by22saxib16fvvvfjr7d68aj3l5dsl5c9a8v23qj";
|
|
}.${system};
|
|
in
|
|
callPackage ./generic.nix rec {
|
|
|
|
version = "1.36.1";
|
|
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}";
|
|
url = "https://vscode-update.azurewebsites.net/${version}/${plat}/stable";
|
|
inherit sha256;
|
|
};
|
|
|
|
sourceRoot = "";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = ''
|
|
Open source source code editor developed by Microsoft for Windows,
|
|
Linux and macOS
|
|
'';
|
|
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
|
|
'';
|
|
homepage = https://code.visualstudio.com/;
|
|
downloadPage = https://code.visualstudio.com/Updates;
|
|
license = licenses.unfree;
|
|
maintainers = with maintainers; [ eadwu synthetica ];
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
};
|
|
}
|