Skip to content

Commit

Permalink
add @lavamoat/allow-scripts package to restrict running npm lifecycle…
Browse files Browse the repository at this point in the history
… scripts
  • Loading branch information
ukorvl committed Feb 11, 2025
1 parent 742bd86 commit bc762b3
Show file tree
Hide file tree
Showing 10 changed files with 2,961 additions and 7,291 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-scripts=true
2 changes: 2 additions & 0 deletions nix/clijs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ 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
export npm_config_ignore_scripts=true
'';

postUnpack = ''
Expand Down
2 changes: 2 additions & 0 deletions nix/nildocs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ 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
export npm_config_ignore_scripts=true
'';

preBuild = ''
Expand Down
2 changes: 2 additions & 0 deletions nix/nilexplorer.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ stdenv.mkDerivation rec {
export CYPRESS_INSTALL_BINARY=0
export CYPRESS_RUN_BINARY=${cypress}/bin/Cypress
export npm_config_ignore_scripts=true
'';

buildPhase = ''
Expand Down
2 changes: 2 additions & 0 deletions nix/niljs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ 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
export npm_config_ignore_scripts=true
'';

buildPhase = ''
Expand Down
2 changes: 2 additions & 0 deletions nix/nilsmartcontracts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ 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
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 @@ -18,5 +18,6 @@ in
../uniswap/package.json
];
};
hash = "sha256-Fhwhf+fJZyznk5pzmvTsvcD4uEcPZ+EveXy03rfJ+D0=";
hash = "sha256-I5UsMa9k7zMg7Rp9/f7eUeuvPOnPg6Sxs/9iMWlzLcQ=";
npmFlags = [ "--ignore-scripts" ];
})
2 changes: 2 additions & 0 deletions nix/uniswap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ 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
export npm_config_ignore_scripts=true
'';

buildPhase = ''
Expand Down
Loading

0 comments on commit bc762b3

Please sign in to comment.