Skip to content

Commit

Permalink
fixup! feat(nix): add nix packages for zkstack and foundry-zksync
Browse files Browse the repository at this point in the history
…, update dev environments, and improve reproducibility

Signed-off-by: Harald Hoyer <[email protected]>
  • Loading branch information
haraldh committed Jan 24, 2025
1 parent fa40c39 commit d1768bd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
6 changes: 2 additions & 4 deletions etc/nix/devShell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
, tee_prover
, coreCommonArgs
, inputs
, customInputsFrom ? [ tee_prover ]
, customPackages ? [ ]
, ...
}:
let
Expand All @@ -14,8 +12,8 @@ let
});
in
pkgs.mkShell {
inputsFrom = customInputsFrom;
packages = customPackages;
inputsFrom = [ tee_prover ];
packages = [ ];

inherit (coreCommonArgs) env hardeningEnable;

Expand Down
37 changes: 21 additions & 16 deletions etc/nix/devShellAll.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,25 @@
, devShell
, foundry-zksync
, ...
}: devShell.override {
customInputsFrom = [ zksync zkstack ];
}:
let
newshell = (pkgs.mkShell {
inputsFrom = [ zksync zkstack ];

customPackages = with pkgs; [
docker-compose
nodejs
yarn
axel
postgresql
python3
solc
sqlx-cli
zkstack
foundry-zksync
nodePackages.prettier
];
}
packages = with pkgs; [
docker-compose
nodejs
yarn
axel
postgresql
python3
solc
sqlx-cli
zkstack
foundry-zksync
nodePackages.prettier
];
});
in
devShell.overrideAttrs
(old: { inherit (newshell) buildInputs nativeBuildInputs; })

0 comments on commit d1768bd

Please sign in to comment.