diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-16 14:20:53 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-02-18 08:25:22 -0300 |
commit | 8f868e154ca265e38481ab15d28429f7ff72e0e4 (patch) | |
tree | 96ae6b1d4dbd4ac7c4084a99564e6c7c593ebfcb /pkgs/misc/vscode-extensions/remote-ssh/default.nix | |
parent | 5cc66fd553a839f9a248e58f027166102c09ccf2 (diff) | |
download | nixpkgs-8f868e154ca265e38481ab15d28429f7ff72e0e4.tar nixpkgs-8f868e154ca265e38481ab15d28429f7ff72e0e4.tar.gz nixpkgs-8f868e154ca265e38481ab15d28429f7ff72e0e4.tar.bz2 nixpkgs-8f868e154ca265e38481ab15d28429f7ff72e0e4.tar.lz nixpkgs-8f868e154ca265e38481ab15d28429f7ff72e0e4.tar.xz nixpkgs-8f868e154ca265e38481ab15d28429f7ff72e0e4.tar.zst nixpkgs-8f868e154ca265e38481ab15d28429f7ff72e0e4.zip |
Move misc/vscode-extensions to applications/editors/vscode/extensions
Diffstat (limited to 'pkgs/misc/vscode-extensions/remote-ssh/default.nix')
-rw-r--r-- | pkgs/misc/vscode-extensions/remote-ssh/default.nix | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/pkgs/misc/vscode-extensions/remote-ssh/default.nix b/pkgs/misc/vscode-extensions/remote-ssh/default.nix deleted file mode 100644 index 3bfc94bb6ea..00000000000 --- a/pkgs/misc/vscode-extensions/remote-ssh/default.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ lib -, vscode-utils -, useLocalExtensions ? false -}: -# Note that useLocalExtensions requires that vscode-server is not running -# on host. If it is, you'll need to remove $HOME/.vscode-server, -# and redo the install by running "Connect to host" on client - -let - inherit (vscode-utils) buildVscodeMarketplaceExtension; - - # patch runs on remote machine hence use of which - # links to local node if version is 12 - patch = '' - f="$HOME/.vscode-server/bin/$COMMIT_ID/node" - localNodePath=''$(which node) - if [ -x "''$localNodePath" ]; then - localNodeVersion=''$(node -v) - if [ "\''${localNodeVersion:1:2}" = "12" ]; then - echo PATCH: replacing ''$f with ''$localNodePath - rm ''$f - ln -s ''$localNodePath ''$f - fi - fi - ${lib.optionalString useLocalExtensions '' - # Use local extensions - if [ -d $HOME/.vscode/extensions ]; then - if ! test -L "$HOME/.vscode-server/extensions"; then - mkdir -p $HOME/.vscode-server - ln -s $HOME/.vscode/extensions $HOME/.vscode-server/ - fi - fi - ''} - ''; -in -buildVscodeMarketplaceExtension { - mktplcRef = { - name = "remote-ssh"; - publisher = "ms-vscode-remote"; - version = "0.66.1"; - sha256 = "sha256-+v4UnGRG5xOc8k0IzvHUBHa128fhgd3jcmEuciiMQmI="; - }; - - postPatch = '' - substituteInPlace "out/extension.js" \ - --replace "# install extensions" '${patch}' - ''; - - meta = with lib; { - description = "Use any remote machine with a SSH server as your development environment."; - license = licenses.unfree; - maintainers = with maintainers; [ SuperSandro2000 tbenst ]; - }; -} |