aboutsummaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/nodejs-sass/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/nodejs-sass/default.nix b/pkgs/nodejs-sass/default.nix
index 67e230b..499ad1a 100644
--- a/pkgs/nodejs-sass/default.nix
+++ b/pkgs/nodejs-sass/default.nix
@@ -20,8 +20,10 @@ let
in m // {
"${name}-${version}" = m."${name}-${version}".override (super: {
# XXX: build bundled libsassl, DO NOT DOWNLOAD binaries!
+ # XXX --nodedir is to prevent gyp from downloading nodejs headers
+ # XXX: ref. https://github.com/nodejs/node-gyp/issues/1133
preRebuild = ''
- SASS_FORCE_BUILD=true npm run-script build
+ npm run build --nodedir=${pkgs.nodejs}
'';
});
};