-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.nix
40 lines (37 loc) · 845 Bytes
/
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
{ callPackage
, writeShellScript
, yarn2nix-moretea
, mkShell
, devPackages
, sentry-cli
, nixVersions
, pre-commit
, age
}:
let
nodeModules = yarn2nix-moretea.mkYarnModules {
pname = "cf-worker-deps";
version = "0.0.0";
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
};
releaseTool = callPackage ./release { inherit nodeModules; };
workerBundle = callPackage ./build.nix { inherit releaseTool nodeModules; };
bundle = "${workerBundle}/index.js";
in
{
shell = mkShell {
packages = devPackages.node.allNode21 ++ [
age
devPackages.node.yarn
devPackages.python.python311
sentry-cli
pre-commit
nixVersions.nix_2_17
];
};
inherit workerBundle;
releaseTool = writeShellScript "release" ''
${releaseTool}/bin/release deploy $@ ${bundle} ${bundle}.map;
'';
}