mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 01:28:12 +08:00
Remove the need for Nix npm dependency hash (#3652)
* Remove the need for nix npmDeps hash * Use 2.x --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -44,18 +44,15 @@ let
|
||||
// {
|
||||
cargoArtifacts = deps.crane.lib.buildDepsOnly resourcesCommon;
|
||||
|
||||
# TODO: Remove the need for this hash by using individual package resolutions and hashes from package-lock.json
|
||||
npmDeps = pkgs.fetchNpmDeps {
|
||||
inherit (info) pname version;
|
||||
src = "${info.src}/frontend";
|
||||
hash = "sha256-WlwzWGoFi3hjRuM5ucrgavko/gg4iFAwMc6uMLjT/FI=";
|
||||
npmDeps = pkgs.importNpmLock {
|
||||
npmRoot = "${info.src}/frontend";
|
||||
};
|
||||
|
||||
npmRoot = "frontend";
|
||||
npmConfigScript = "setup";
|
||||
makeCacheWritable = true;
|
||||
|
||||
nativeBuildInputs = tools.frontend ++ [ pkgs.npmHooks.npmConfigHook ];
|
||||
nativeBuildInputs = tools.frontend ++ [ pkgs.importNpmLock.npmConfigHook ];
|
||||
|
||||
prePatch = ''
|
||||
mkdir branding
|
||||
|
||||
Reference in New Issue
Block a user