diff --git a/home/programs/vscode/extensions/noop-syslog.c b/home/programs/vscode/extensions/noop-syslog.c deleted file mode 100644 index c76ec57..0000000 --- a/home/programs/vscode/extensions/noop-syslog.c +++ /dev/null @@ -1 +0,0 @@ -void syslog(int priority, const char *format, ...) { } diff --git a/home/programs/vscode/extensions/vsliveshare.nix b/home/programs/vscode/extensions/vsliveshare.nix deleted file mode 100644 index 0d8068c..0000000 --- a/home/programs/vscode/extensions/vsliveshare.nix +++ /dev/null @@ -1,117 +0,0 @@ -# Based on previous attempts: -# - -# - -{ lib, gccStdenv, vscode-utils -, jq, autoPatchelfHook, bash, makeWrapper -, dotnet-sdk_3, curl, gcc, icu, libkrb5, libsecret, libunwind, libX11, lttng-ust, openssl, util-linux, zlib -, desktop-file-utils, xprop, xsel -}: - -with lib; - -let - # https://docs.microsoft.com/en-us/visualstudio/liveshare/reference/linux#install-prerequisites-manually - libs = [ - # .NET Core - openssl - libkrb5 - zlib - icu - - # 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 = { - name = "vsliveshare"; - publisher = "ms-vsliveshare"; - version = "1.0.5449"; - sha256 = "QKRWfzEdjY7S3d3RPczBvXnhxmfpJZ2bwzcIDbaw+MQ="; - }; -}).overrideAttrs({ nativeBuildInputs ? [], buildInputs ? [], ... }: { - nativeBuildInputs = nativeBuildInputs ++ [ - bash - jq - autoPatchelfHook - makeWrapper - ]; - 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 = '' - sed -i \ - -e 's/updateExecutablePermissionsAsync() {/& return;/' \ - -e 's/isInstallCorrupt(traceSource, manifest) {/& return false;/' \ - out/prod/extension-prod.js - declare ext_unique_id - ext_unique_id="$(basename "$out")" - # Fix extension attempting to write to 'modifiedInternalSettings.json'. - # Move this write to the tmp directory indexed by the nix store basename. - substituteInPlace out/prod/extension-prod.js \ - --replace "path.resolve(constants_1.EXTENSION_ROOT_PATH, './modifiedInternalSettings.json')" \ - "path.join(os.tmpdir(), '$ext_unique_id-modifiedInternalSettings.json')" - # Fix extension attempting to write to 'vsls-agent.lock'. - # Move this write to the tmp directory indexed by the nix store basename. - substituteInPlace out/prod/extension-prod.js \ - --replace "path + '.lock'" \ - "__webpack_require__('path').join(__webpack_require__('os').tmpdir(), '$ext_unique_id-vsls-agent.lock')" - # Hardcode executable paths - substituteInPlace out/prod/extension-prod.js \ - --replace xprop ${xprop}/bin/xprop \ - --replace "'xsel'" "'${xsel}/bin/xsel'" - ''; - - postInstall = '' - cd $out/share/vscode/extensions/ms-vsliveshare.vsliveshare - bash -s <