Skip to content

Commit

Permalink
add flake packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hellwolf committed Aug 20, 2024
1 parent d1f3090 commit 6dc6da9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ jobs:
- name: Test Default Shell
run: |
set -x
# test `nix develop`
nix develop .# --command -- bash -c "solc-0.8.26 --version"
# overriding flake input is needed as a workaround to local sub flake with overlapping paths.
# test `nix shell`
nix shell .#solc-0.8.19
# test solc.nix as input to other flakes
# Note: overriding flake input is needed as a workaround to local sub flake with overlapping paths.
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc --version"
nix develop ./test/.# --override-input solc $PWD --command -- bash -c "solc-0.8.26 --version"
ci-check-success:
Expand Down
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
{
# default shell with the latest solc compiler
devShells.default = pkgs.mkShell { buildInputs = [ pkgs.solc_0_8_26 ]; };

# export all solc packages
packages = pkgs;
}
)
// {
Expand Down

0 comments on commit 6dc6da9

Please sign in to comment.