File tree 1 file changed +9
-15
lines changed
1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change 23
23
( fs . fileFilter ( file : file . hasExt "json" ) r )
24
24
] ) ;
25
25
} ;
26
+ package-json = builtins . fromJSON ( builtins . readFile ./package.json ) ;
26
27
in {
27
28
packages . ${ system } = {
28
- # deps = with pkgs;
29
- # stdenvNoCC.mkDerivation {
30
- # name = "neohome-deps";
31
- # inherit src;
32
- # nativeBuildInputs = [prefetch-npm-deps];
33
- # buildPhase = ''
34
- # prefetch-npm-deps ./package-lock.json > $out
35
- # '';
36
- # outputHashAlgo = "sha256";
37
- # outputHashMode = "recursive";
38
- # outputHash = "sha256-4SePc3yGlBTGCoCeZtVL9A1NK5vv2CM8EnoRCinhPA0=";
39
- # };
40
-
41
29
default = with pkgs ;
42
30
buildNpmPackage {
43
- name = "neohome" ;
31
+ pname = package-json . name ;
32
+ version = package-json . version ;
44
33
inherit src ;
45
- npmDepsHash = "sha256-MXBEcrU3NZw24Ag7qPd4iY69EpSmkI+EU2y+vQehSEY=" ;
34
+
35
+ npmDeps = importNpmLock {
36
+ npmRoot = src ;
37
+ } ;
38
+ npmConfigHook = importNpmLock . npmConfigHook ;
39
+
46
40
env . ASTRO_TELEMETRY_DISABLED = true ;
47
41
} ;
48
42
} ;
You can’t perform that action at this time.
0 commit comments