openvscode-server: 1.79.2 -> 1.84.0

+20 -9
+18 -8
pkgs/servers/openvscode-server/default.nix
··· 12 12 , python3 13 13 , esbuild 14 14 , nodejs 15 + , node-gyp 15 16 , libsecret 17 + , libkrb5 16 18 , xorg 17 19 , ripgrep 18 20 , AppKit ··· 37 39 38 40 esbuild' = esbuild.override { 39 41 buildGoModule = args: buildGoModule (args // rec { 40 - version = "0.16.17"; 42 + version = "0.17.14"; 41 43 src = fetchFromGitHub { 42 44 owner = "evanw"; 43 45 repo = "esbuild"; 44 46 rev = "v${version}"; 45 - hash = "sha256-8L8h0FaexNsb3Mj6/ohA37nYLFogo5wXkAhGztGUUsQ="; 47 + hash = "sha256-4TC1d5FOZHUMuEMTcTOBLZZM+sFUswhyblI5HVWyvPA="; 46 48 }; 47 49 vendorHash = "sha256-+BfxCyg0KkDQpHt/wycy/8CTG6YBA/VJvJFhhzUnSiQ="; 48 50 }); ··· 58 60 in 59 61 stdenv.mkDerivation (finalAttrs: { 60 62 pname = "openvscode-server"; 61 - version = "1.79.2"; 63 + version = "1.84.0"; 62 64 63 65 src = fetchFromGitHub { 64 66 owner = "gitpod-io"; 65 67 repo = "openvscode-server"; 66 68 rev = "openvscode-server-v${finalAttrs.version}"; 67 - hash = "sha256-u5LuDcKTN4CEpRnFCeEbni6hiDDwTV9LUEmXaQYJvJw="; 69 + hash = "sha256-kYKvJrHWKHDIqJsN0j1WFN3OBWwEyNgY5hjNHBg+kKQ="; 68 70 }; 69 71 70 72 yarnCache = stdenv.mkDerivation { ··· 87 89 88 90 outputHashMode = "recursive"; 89 91 outputHashAlgo = "sha256"; 90 - outputHash = "sha256-P6mzeE3HnS/KoP7kCXJlDkFWkTKiGjJkOUXfGOru/xE="; 92 + outputHash = "sha256-oW/JngHpXb8kscikscI7N9csSyZsZQgG75jOdWll6dw="; 91 93 }; 92 94 93 95 nativeBuildInputs = [ ··· 102 104 ]; 103 105 104 106 buildInputs = lib.optionals (!stdenv.isDarwin) [ libsecret ] 105 - ++ (with xorg; [ libX11 libxkbfile ]) 107 + ++ (with xorg; [ libX11 libxkbfile libkrb5 ]) 106 108 ++ lib.optionals stdenv.isDarwin [ 107 109 AppKit 108 110 Cocoa ··· 140 142 # set offline mirror to yarn cache we created in previous steps 141 143 yarn --offline config set yarn-offline-mirror "${finalAttrs.yarnCache}" 142 144 143 - # set nodedir, so we can build binaries later 144 - npm config set nodedir "${nodejs}" 145 + # set nodedir to prevent node-gyp from downloading headers 146 + # taken from https://nixos.org/manual/nixpkgs/stable/#javascript-tool-specific 147 + mkdir -p $HOME/.node-gyp/${nodejs.version} 148 + echo 9 > $HOME/.node-gyp/${nodejs.version}/installVersion 149 + ln -sfv ${nodejs}/include $HOME/.node-gyp/${nodejs.version} 150 + export npm_config_nodedir=${nodejs} 151 + 152 + # use updated node-gyp. fixes the following error on Darwin: 153 + # PermissionError: [Errno 1] Operation not permitted: '/usr/sbin/pkgutil' 154 + export npm_config_node_gyp=${node-gyp}/lib/node_modules/node-gyp/bin/node-gyp.js 145 155 146 156 runHook postConfigure 147 157 '';
+2 -1
pkgs/top-level/all-packages.nix
··· 36308 36308 vscodium-fhsWithPackages = vscodium.fhsWithPackages; 36309 36309 36310 36310 openvscode-server = callPackage ../servers/openvscode-server { 36311 - nodejs = nodejs_16; 36311 + nodejs = nodejs_18; 36312 36312 inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Security; 36313 36313 inherit (darwin) cctools; 36314 + inherit (nodePackages) node-gyp; 36314 36315 }; 36315 36316 36316 36317 code-server = callPackage ../servers/code-server {