wash-cli 0.16.2

wasmcloud Shell (wash) CLI tool
{
  description = "wash - wasmCloud Shell";

  inputs.nixify.url = github:rvolosatovs/nixify;

  outputs = {
    self,
    nixify,
  }:
    with nixify.lib;
      rust.mkFlake {
        name = "wash";
        src = ./.;

        buildOverrides = {
          pkgs,
          nativeBuildInputs ? [],
          ...
        }: {
          nativeBuildInputs =
            nativeBuildInputs
            ++ [
              pkgs.protobuf # build dependency of prost-build v0.9.0
            ];
        };

        withDevShells = {
          pkgs,
          devShells,
          ...
        }:
          extendDerivations {
            buildInputs = [
              pkgs.git # required for integration tests
              pkgs.tinygo # required for integration tests
              pkgs.protobuf # build dependency of prost-build v0.9.0
            ];
          }
          devShells;

        excludePaths = [
          ".devcontainer"
          ".github"
          ".gitignore"
          ".pre-commit-config.yaml"
          "Dockerfile"
          "flake.lock"
          "flake.nix"
          "LICENSE"
          "Makefile"
          "README.md"
          "rust-toolchain.toml"
          "snap"
          "tools"

          # Exclude tests, which require either:
          # - non-deterministic networking, which is not available within Nix sandbox
          # - external services running, which would require a more involved setup
          "tests/integration_build.rs"
          "tests/integration_claims.rs"
          "tests/integration_par.rs"
          "tests/integration_reg.rs"
          "tests/integration_up.rs"
        ];
      };
}