vscode-extensions.ms-vsliveshare.vsliveshare: 1.0.5900 -> 1.0.5918
In addition, this cleans up the package, and enables it on platforms other than x86_64-linux (which had been supported for a while). Change-Id: I4e61973222af3eb74b69d6fd08f211815c30b4c6
This commit is contained in:
parent
368ac1e650
commit
3cce2022ec
|
@ -1,54 +1,23 @@
|
||||||
# Based on previous attempts:
|
{ lib, vscode-utils, xsel }:
|
||||||
# - <https://github.com/msteen/nixos-vsliveshare/blob/master/pkgs/vsliveshare/default.nix>
|
|
||||||
# - <https://github.com/NixOS/nixpkgs/issues/41189>
|
|
||||||
{ lib, gccStdenv, vscode-utils
|
|
||||||
, autoPatchelfHook, bash, makeWrapper
|
|
||||||
, curl, gcc, libsecret, libunwind, libX11, lttng-ust, util-linux
|
|
||||||
, desktop-file-utils, xsel
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
vscode-utils.buildVscodeMarketplaceExtension {
|
||||||
# https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#install-prerequisites-manually
|
|
||||||
libs = [
|
|
||||||
# Credential Storage
|
|
||||||
libsecret
|
|
||||||
|
|
||||||
# NodeJS
|
|
||||||
libX11
|
|
||||||
|
|
||||||
# https://github.com/flathub/com.visualstudio.code.oss/issues/11#issuecomment-392709170
|
|
||||||
libunwind
|
|
||||||
lttng-ust
|
|
||||||
curl
|
|
||||||
|
|
||||||
# General
|
|
||||||
gcc.cc.lib
|
|
||||||
util-linux # libuuid
|
|
||||||
];
|
|
||||||
|
|
||||||
in ((vscode-utils.override { stdenv = gccStdenv; }).buildVscodeMarketplaceExtension {
|
|
||||||
mktplcRef = {
|
mktplcRef = {
|
||||||
name = "vsliveshare";
|
name = "vsliveshare";
|
||||||
publisher = "ms-vsliveshare";
|
publisher = "ms-vsliveshare";
|
||||||
version = "1.0.5900";
|
version = "1.0.5918";
|
||||||
hash = "sha256-syVW/aS2ppJjg4OZaenzGM3lczt+sLy7prwsYFTDl9s=";
|
hash = "sha256-Tk0mKydUF8M7l7NC9wEA7t2rzJWy/mq4/HvIHI2/ldQ=";
|
||||||
};
|
};
|
||||||
}).overrideAttrs({ buildInputs ? [], ... }: {
|
|
||||||
buildInputs = buildInputs ++ libs;
|
|
||||||
|
|
||||||
# Using a patch file won't work, because the file changes too often, causing the patch to fail on most updates.
|
|
||||||
# Rather than patching the calls to functions, we modify the functions to return what we want,
|
|
||||||
# which is less likely to break in the future.
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace extension.js \
|
substituteInPlace extension.js \
|
||||||
--replace "'xsel'" "'${xsel}/bin/xsel'"
|
--replace-fail '"xsel"' '"${xsel}/bin/xsel"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Live Share lets you achieve greater confidence at speed by streamlining collaborative editing, debugging, and more in real-time during development";
|
description = "Real-time collaborative development for VS Code";
|
||||||
homepage = "https://aka.ms/vsls-docs";
|
homepage = "https://aka.ms/vsls-docs";
|
||||||
|
changelog = "https://marketplace.visualstudio.com/items/MS-vsliveshare.vsliveshare/changelog";
|
||||||
license = lib.licenses.unfree;
|
license = lib.licenses.unfree;
|
||||||
maintainers = [ lib.maintainers.jraygauthier lib.maintainers.V ];
|
maintainers = builtins.attrValues { inherit (lib.maintainers) jraygauthier V; };
|
||||||
platforms = [ "x86_64-linux" ];
|
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user