1{
2 lib,
3 stdenv,
4 deno,
5}:
6stdenv.mkDerivation {
7 name = "nucleus-modules";
8
9 src = lib.fileset.toSource {
10 root = ../.;
11 fileset = lib.fileset.unions [
12 ../deno.lock
13 ../package.json
14 ];
15 };
16
17 outputHash = "sha256-s5rq8htDjR0I8MxPtLq1NYIywXGEdYbZZvE7I5+TCIU=";
18 outputHashAlgo = "sha256";
19 outputHashMode = "recursive";
20
21 nativeBuildInputs = [deno];
22
23 dontConfigure = true;
24 dontCheck = true;
25 dontFixup = true;
26 dontPatchShebangs = true;
27
28 buildPhase = ''
29 HOME=$TMPDIR deno install --frozen --seed 8008135
30 '';
31 installPhase = ''
32 cp -R node_modules $out
33 ls -la $out
34 '';
35}