From 059eff195831ee1f6bed2d3bcbdbcde70904b2d7 Mon Sep 17 00:00:00 2001 From: Wout Mertens Date: Fri, 5 Aug 2022 07:23:18 +0200 Subject: [PATCH] nodejs: fix sqlite3 build --- overrides/nodejs/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/overrides/nodejs/default.nix b/overrides/nodejs/default.nix index eed79ceccb..71ce1cbdf1 100644 --- a/overrides/nodejs/default.nix +++ b/overrides/nodejs/default.nix @@ -660,6 +660,20 @@ in }; }; + sqlite3 = { + build = { + # See its README for build instructions + # It needs different flags for electron, not sure how to do that + buildScript = '' + node-pre-gyp install --build-from-source --nodedir=$nodeSources --offline --runtime=node --sqlite=${pkgs.sqlite} + ''; + nativeBuildInputs = old: old ++ [pkgs.sqlite]; + # # TODO overrides should get correct nodejs version + # pkgs.nodejs-16_x.pkgs.node-gyp] + # ; + }; + }; + tabby = { inherit cntr; fix-build = {