From 7044f637883d55178117c6354b90eede491a47d8 Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Thu, 8 Feb 2024 19:33:57 +0100 Subject: [PATCH] replace new npm patch-package call by patching npm modules in napalm --- flake.nix | 8 ++++++++ package.json | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index dfb449705..ae3d5405e 100644 --- a/flake.nix +++ b/flake.nix @@ -73,6 +73,14 @@ inherit nodejs; nativeBuildInputs = [ pkgs.imagemagick ]; npmCommands = [ "npm install" "npm run build" ]; + # Keep this in sync with the content of ./patches/ + customPatchPackages = { + vue-i18n-extract."2.0.7" = pkgs: prev: { + preConfigure = '' + ${pkgs.git}/bin/git apply -p3 ${./patches/vue-i18n-extract+2.0.7.patch} + ''; + }; + }; }; default = self.packages."${system}".mobilizon; diff --git a/package.json b/package.json index 8bbb2fe49..3ad9a534b 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,7 @@ "story:preview": "histoire preview", "test": "vitest", "coverage": "vitest run --coverage", - "pre-commit": "lint-staged", - "postinstall": "patch-package" + "pre-commit": "lint-staged" }, "lint-staged": { "**/*.{js,ts,vue}": [