Fix node-gyp build: add PrivateTmp to lamassu-build service
This commit is contained in:
parent
4fd0a02f81
commit
501d53b238
1 changed files with 4 additions and 0 deletions
|
|
@ -270,6 +270,8 @@ in
|
|||
CI = "true";
|
||||
CC = "${pkgs.stdenv.cc}/bin/cc";
|
||||
CXX = "${pkgs.stdenv.cc}/bin/c++";
|
||||
# Use content-addressable store to reduce disk usage
|
||||
npm_config_cache = "${cfg.dataDir}/.npm-cache";
|
||||
};
|
||||
|
||||
serviceConfig = {
|
||||
|
|
@ -285,6 +287,8 @@ in
|
|||
ProtectHome = true;
|
||||
NoNewPrivileges = true;
|
||||
ReadWritePaths = [ cfg.dataDir ];
|
||||
# node-gyp needs writable /tmp for native module compilation
|
||||
PrivateTmp = true;
|
||||
};
|
||||
|
||||
script = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue