photoncloud-monorepo/testing/s3-test.nix

25 lines
No EOL
603 B
Nix

let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
rustToolchain = pkgs.rust-bin.stable.latest.default;
in
pkgs.mkShell {
name = "s3-test-env";
buildInputs = with pkgs; [
rustToolchain
awscli2
jq
curl
protobuf
pkg-config
openssl
];
# Set up environment variables if needed
shellHook = ''
export PATH=$PATH:$PWD/target/debug
echo "S3 Test Environment Loaded"
echo "Run ./testing/run-s3-test.sh to execute the tests."
'';
}