From 96c52e08451735e83720a53a0d68e93487fdee25 Mon Sep 17 00:00:00 2001 From: James Mead Date: Fri, 7 Jan 2022 01:06:00 +0000 Subject: [PATCH] Override execjs build inputs to avoid building v8 The v8 JS engine doesn't compile successfully on my M1 Mac. However, the intention was always that execjs would use the runtime provided by node.js which is already listed as an explicit dependency in shell.nix. --- shell.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shell.nix b/shell.nix index 4fb851f..9382e9a 100644 --- a/shell.nix +++ b/shell.nix @@ -5,6 +5,11 @@ let name = "jamesmead.org-bundler-env"; inherit ruby; gemdir = ./.; + gemConfig = pkgs.defaultGemConfig // { + execjs = attrs: { + propagatedBuildInputs = []; + }; + }; }; in stdenv.mkDerivation { name = "jamesmead.org";