Use Nix importNpmLock to not need to specify sha256 dependency hash

This commit is contained in:
thiloho
2024-08-24 19:44:17 +02:00
parent e34a2ac87f
commit 3c49d1e2f3

View File

@@ -2,6 +2,7 @@
lib, lib,
stdenv, stdenv,
buildNpmPackage, buildNpmPackage,
importNpmLock,
symlinkJoin, symlinkJoin,
}: }:
@@ -13,7 +14,10 @@ let
inherit pname version; inherit pname version;
name = "archtika-web-app"; name = "archtika-web-app";
src = ../web-app; src = ../web-app;
npmDepsHash = "sha256-lO+4r/9jEbjkl6e2Dg84WJNin9zYgR7bmdPiBlHFxf0="; npmDeps = importNpmLock {
npmRoot = ../web-app;
};
npmConfigHook = importNpmLock.npmConfigHook;
npmFlags = [ "--legacy-peer-deps" ]; npmFlags = [ "--legacy-peer-deps" ];
installPhase = '' installPhase = ''
mkdir -p $out/web-app mkdir -p $out/web-app