nix-flake-examples/aws-rust-lambda/flake.nix

30 lines
949 B
Nix

# lambda-flake/flake.nix
{
description = "AWS Lambda deployment flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-flake.url = "https://git.lerch.org/lobo/nix-flake-examples/archive/master.tar.gz?dir=/rust"; # Adjust this path as needed
# rust-flake.url = "https://git.lerch.org/lobo/nix-flake-examples/archive/master.tar.gz?dir=/rust"; # Adjust this path as needed
};
outputs = { self, nixpkgs, flake-utils, rust-flake }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = [
# Include Rust tools from the rust-flake
rust-flake.devShells.${system}.default.buildInputs
# Add AWS Lambda deployment tools
pkgs.cargo-lambda
];
};
}
);
}