Skip to content

Commit

Permalink
nodejs: fix sqlite3 build
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Aug 11, 2022
1 parent 0cc4703 commit 059eff1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions overrides/nodejs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 059eff1

Please sign in to comment.