From 3c49d1e2f317a82524b23d3cea2d1b6c57362629 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Sat, 24 Aug 2024 19:44:17 +0200 Subject: [PATCH] Use Nix importNpmLock to not need to specify sha256 dependency hash --- nix/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nix/package.nix b/nix/package.nix index 635b13e..1eb07f8 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -2,6 +2,7 @@ lib, stdenv, buildNpmPackage, + importNpmLock, symlinkJoin, }: @@ -13,7 +14,10 @@ let inherit pname version; name = "archtika-web-app"; src = ../web-app; - npmDepsHash = "sha256-lO+4r/9jEbjkl6e2Dg84WJNin9zYgR7bmdPiBlHFxf0="; + npmDeps = importNpmLock { + npmRoot = ../web-app; + }; + npmConfigHook = importNpmLock.npmConfigHook; npmFlags = [ "--legacy-peer-deps" ]; installPhase = '' mkdir -p $out/web-app