Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lavamoat to prevent install scripts #231

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-scripts=true
3 changes: 3 additions & 0 deletions nix/clijs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ stdenv.mkDerivation rec {
preUnpack = ''
echo "Setting UV_USE_IO_URING=0 to work around the io_uring kernel bug"
export UV_USE_IO_URING=0

echo "Setting npm_config_ignore_scripts=true to ignore npm lifecycle scripts"
export npm_config_ignore_scripts=true
'';

postUnpack = ''
Expand Down
3 changes: 3 additions & 0 deletions nix/nildocs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ stdenv.mkDerivation rec {
preUnpack = ''
echo "Setting UV_USE_IO_URING=0 to work around the io_uring kernel bug"
export UV_USE_IO_URING=0

echo "Setting npm_config_ignore_scripts=true to ignore npm lifecycle scripts"
export npm_config_ignore_scripts=true
'';

preBuild = ''
Expand Down
3 changes: 3 additions & 0 deletions nix/nilexplorer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ stdenv.mkDerivation rec {

export CYPRESS_INSTALL_BINARY=0
export CYPRESS_RUN_BINARY=${cypress}/bin/Cypress

echo "Setting npm_config_ignore_scripts=true to ignore npm lifecycle scripts"
export npm_config_ignore_scripts=true
'';

buildPhase = ''
Expand Down
3 changes: 3 additions & 0 deletions nix/niljs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ stdenv.mkDerivation rec {
preUnpack = ''
echo "Setting UV_USE_IO_URING=0 to work around the io_uring kernel bug"
export UV_USE_IO_URING=0

echo "Setting npm_config_ignore_scripts=true to ignore npm lifecycle scripts"
export npm_config_ignore_scripts=true
'';

buildPhase = ''
Expand Down
3 changes: 3 additions & 0 deletions nix/nilsmartcontracts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ stdenv.mkDerivation rec {
preUnpack = ''
echo "Setting UV_USE_IO_URING=0 to work around the io_uring kernel bug"
export UV_USE_IO_URING=0

echo "Setting npm_config_ignore_scripts=true to ignore npm lifecycle scripts"
export npm_config_ignore_scripts=true
'';

buildPhase = ''
Expand Down
3 changes: 2 additions & 1 deletion nix/npmdeps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ in
../explorer_backend/package.json
../explorer_frontend/package.json
../uniswap/package.json
../wallet-extension/package.json
];
};
hash = "sha256-Fhwhf+fJZyznk5pzmvTsvcD4uEcPZ+EveXy03rfJ+D0=";
hash = "sha256-I5UsMa9k7zMg7Rp9/f7eUeuvPOnPg6Sxs/9iMWlzLcQ=";
})
3 changes: 3 additions & 0 deletions nix/uniswap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ stdenv.mkDerivation rec {
preUnpack = ''
echo "Setting UV_USE_IO_URING=0 to work around the io_uring kernel bug"
export UV_USE_IO_URING=0

echo "Setting npm_config_ignore_scripts=true to ignore npm lifecycle scripts"
export npm_config_ignore_scripts=true
'';

buildPhase = ''
Expand Down
8 changes: 8 additions & 0 deletions nix/walletextension.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ stdenv.mkDerivation rec {

dontConfigure = true;

preUnpack = ''
echo "Setting UV_USE_IO_URING=0 to work around the io_uring kernel bug"
export UV_USE_IO_URING=0

echo "Setting npm_config_ignore_scripts=true to ignore npm lifecycle scripts"
export npm_config_ignore_scripts=true
'';

buildPhase = ''
patchShebangs wallet-extension/node_modules

Expand Down
Loading