Skip to content

Commit 2718cdc

Browse files
committed
Added npm_config_build_from_source to ensure native modules are built from source and removes pkg warnings
1 parent 21decb8 commit 2718cdc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

release.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ let
1818
];
1919
PKG_CACHE_PATH = utils.pkgCachePath;
2020
PKG_IGNORE_TAG = 1;
21+
# ensure that native modules are built from source
22+
npm_config_build_from_source = "true";
2123
buildPhase = ''
2224
cp ${./package.json} package.json
2325
pkg . \
@@ -42,6 +44,8 @@ let
4244
];
4345
PKG_CACHE_PATH = utils.pkgCachePath;
4446
PKG_IGNORE_TAG = 1;
47+
# ensure that native modules are built from source
48+
npm_config_build_from_source = "true";
4549
buildPhase = ''
4650
cp ${./package.json} package.json
4751
pkg . \
@@ -65,6 +69,8 @@ let
6569
];
6670
PKG_CACHE_PATH = utils.pkgCachePath;
6771
PKG_IGNORE_TAG = 1;
72+
# ensure that native modules are built from source
73+
npm_config_build_from_source = "true";
6874
buildPhase = ''
6975
cp ${./package.json} package.json
7076
pkg . \

0 commit comments

Comments
 (0)