tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
openvscode-server: 1.62.3 -> 1.66.0
Emily Trau
3 years ago
aa010a32
ff5da2c3
+20
-21
2 changed files
expand all
collapse all
unified
split
pkgs
servers
openvscode-server
default.nix
remove-node-download.patch
+11
-14
pkgs/servers/openvscode-server/default.nix
···
13
13
vsBuildTarget = {
14
14
x86_64-linux = "linux-x64";
15
15
aarch64-linux = "linux-arm64";
16
16
-
x86_64-darwin = "darwin";
16
16
+
x86_64-darwin = "darwin-x64";
17
17
+
aarch64-darwin = "darwin-arm64";
17
18
}.${system} or (throw "Unsupported system ${system}");
18
19
19
20
# replaces esbuild's download script with a binary from nixpkgs
···
26
27
27
28
in stdenv.mkDerivation rec {
28
29
pname = "openvscode-server";
29
29
-
version = "1.62.3";
30
30
+
version = "1.66.0";
30
31
31
32
src = fetchFromGitHub {
32
33
owner = "gitpod-io";
33
34
repo = "openvscode-server";
34
35
rev = "openvscode-server-v${version}";
35
35
-
sha256 = "0822181gbd6y8bzn65liv7prqv7pg067sbl8nac02zg7268qwi6j";
36
36
+
sha256 = "g5QaxZDVXvE/vOe2BjBXlqYLGZ2EG4nTKdUlLdt8H8A=";
36
37
};
37
38
38
39
yarnCache = stdenv.mkDerivation {
···
55
56
56
57
outputHashMode = "recursive";
57
58
outputHashAlgo = "sha256";
58
58
-
outputHash = "0rmcixcn7lmrndb2pq0x895qp34hc271h1j0n3xq9rv603v1ayvk";
59
59
+
outputHash = "sha256-BeVJsruiRLReGMwThfcEm/ez4UFcr0oI4wwevJwxt58=";
59
60
};
60
61
61
62
# Extract the Node.js source code which is used to compile packages with
···
123
124
patchShebangs ./remote/node_modules
124
125
125
126
# put ripgrep binary into bin so postinstall does not try to download it
126
126
-
find -name vscode-ripgrep -type d \
127
127
+
find -path "*@vscode/ripgrep" -type d \
127
128
-execdir mkdir -p {}/bin \; \
128
129
-execdir ln -s ${ripgrep}/bin/rg {}/bin/rg \;
129
130
'' + lib.optionalString stdenv.isDarwin ''
···
150
151
'';
151
152
152
153
installPhase = ''
153
153
-
mkdir -p $out/libexec
154
154
-
155
155
-
cp -R -T ../vscode-reh-web-${vsBuildTarget} "$out/libexec"
156
156
-
157
157
-
ln -s ${nodejs}/bin/node $out/libexec
158
158
-
159
159
-
makeWrapper "$out/libexec/server.sh" "$out/bin/openvscode-server"
154
154
+
mkdir -p $out
155
155
+
cp -R -T ../vscode-reh-web-${vsBuildTarget} $out
156
156
+
ln -s ${nodejs}/bin/node $out
160
157
'';
161
158
162
159
meta = with lib; {
···
167
164
'';
168
165
homepage = "https://github.com/gitpod-io/openvscode-server";
169
166
license = licenses.mit;
170
170
-
maintainers = with maintainers; [ dguenther ghuntley ];
171
171
-
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
167
167
+
maintainers = with maintainers; [ dguenther ghuntley emilytrau ];
168
168
+
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
172
169
};
173
170
}
+9
-7
pkgs/servers/openvscode-server/remove-node-download.patch
···
1
1
-
--- ./build/gulpfile.reh.js
2
2
-
+++ ./build/gulpfile.reh.js
3
3
-
@@ -277,8 +277,6 @@
1
1
+
diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
2
2
+
index a44941a1e73..5fc924cb367 100644
3
3
+
--- a/build/gulpfile.reh.js
4
4
+
+++ b/build/gulpfile.reh.js
5
5
+
@@ -265,8 +265,6 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
4
6
.pipe(util.stripSourceMappingURL())
5
7
.pipe(jsFilter.restore);
6
8
7
7
-
- const nodePath = `.build/node/v${nodeVersion}/${platform}-${platform === 'darwin' ? 'x64' : arch}`;
9
9
+
- const nodePath = `.build/node/v${nodeVersion}/${platform}-${arch}`;
8
10
- const node = gulp.src(`${nodePath}/**`, { base: nodePath, dot: true });
9
11
10
12
let web = [];
11
13
if (type === 'reh-web') {
12
12
-
@@ -296,7 +294,6 @@
14
14
+
@@ -284,7 +282,6 @@ function packageTask(type, platform, arch, sourceFolderName, destinationFolderNa
13
15
license,
14
16
sources,
15
17
deps,
···
17
19
...web
18
20
);
19
21
20
20
-
@@ -376,7 +373,6 @@
22
22
+
@@ -382,7 +379,6 @@ function tweakProductForServerWeb(product) {
21
23
const destinationFolderName = `vscode-${type}${dashed(platform)}${dashed(arch)}`;
22
24
23
25
const serverTaskCI = task.define(`vscode-${type}${dashed(platform)}${dashed(arch)}${dashed(minified)}-ci`, task.series(
24
24
-
- gulp.task(`node-${platform}-${platform === 'darwin' ? 'x64' : arch}`),
26
26
+
- gulp.task(`node-${platform}-${arch}`),
25
27
util.rimraf(path.join(BUILD_ROOT, destinationFolderName)),
26
28
packageTask(type, platform, arch, sourceFolderName, destinationFolderName)
27
29
));