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