diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5685e9..e073336 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/flake.nix b/flake.nix index bca112f..56abad0 100644 --- a/flake.nix +++ b/flake.nix @@ -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; } ) // {