48 lines
1.5 KiB
Nix
48 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
vscode-utils,
|
|
namespace,
|
|
pkgs,
|
|
}:
|
|
|
|
let
|
|
inherit (lib.trivial) importJSON;
|
|
inherit (lib.${namespace}) versioning;
|
|
|
|
versionSpec = importJSON ./version.json;
|
|
selected = versioning.selectVariant versionSpec null null;
|
|
vars = selected.variables or { };
|
|
sources = versioning.mkAllSources selected;
|
|
in
|
|
vscode-utils.buildVscodeMarketplaceExtension {
|
|
mktplcRef = {
|
|
name = vars.name;
|
|
publisher = vars.publisher;
|
|
version = vars.version;
|
|
};
|
|
|
|
vsix = sources.vsix;
|
|
|
|
unpackPhase = ''
|
|
${lib.getExe pkgs.unzip} -q $src
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Use any remote machine with a SSH server as your development environment";
|
|
longDescription = ''
|
|
The Open Remote SSH extension allows you to open a remote folder on any
|
|
remote machine, virtual machine, or container with a running SSH server
|
|
and take full advantage of VS Code's feature set. This is an open-source
|
|
alternative to Microsoft's proprietary Remote SSH extension, designed to
|
|
work with VSCodium and other open-source VS Code variants.
|
|
Note: This extension requires enabling proposed APIs in VSCodium/Code-OSS.
|
|
You need to add "jeanp413.open-remote-ssh" to the "enable-proposed-api"
|
|
array in ~/.vscode-oss/argv.json
|
|
'';
|
|
homepage = "https://github.com/jeanp413/open-remote-ssh";
|
|
changelog = "https://github.com/jeanp413/open-remote-ssh/releases";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|