-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
62 lines (56 loc) · 1.36 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
config,
dream2nix,
lib,
...
}: {
imports = [
dream2nix.modules.dream2nix.nodejs-package-lock-v3
dream2nix.modules.dream2nix.nodejs-granular-v3
];
mkDerivation = {
inherit (config.deps) patches src;
buildPhase = ''
gulp compile && gulp vsDebugServerBundle:webpack-bundle
'';
};
deps = {nixpkgs, ...}: {
inherit
(nixpkgs)
fetchFromGitHub
libsecret
pkg-config
stdenv
;
# https://github.com/microsoft/vscode-js-debug/commit/f33da847503857454d2abc6f35e72a9722115b46
picomatch = nixpkgs.fetchFromGitHub {
owner = "connor4312";
repo = "picomatch";
rev = "2fbe90b12eafa7dde816ff8c16be9e77271b0e0b";
hash = "sha256-NWVzzTlGfyXG/N0z7wy3oZDjuGZ1uQHfwT/EEKGp73Q=";
};
};
nodejs-granular-v3 = {
deps = {
keytar."7.7.0" = {
mkDerivation = {
nativeBuildInputs = [config.deps.pkg-config];
buildInputs = [config.deps.libsecret];
};
};
picomatch."2.3.1" = {
mkDerivation = {
src = lib.mkForce config.deps.picomatch;
};
};
playwright."1.26.0" = {
env.PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1;
};
};
};
nodejs-package-lock-v3 = {
packageLockFile = "${config.mkDerivation.src}/package-lock.json";
};
name = "vscode-js-debug";
inherit (config.deps) version;
}