2024-11-06 10:26:41 -08:00
# lambda-flake/flake.nix
{
description = " A W S L a m b d a d e p l o y m e n t f l a k e " ;
inputs = {
nixpkgs . url = " g i t h u b : N i x O S / n i x p k g s / n i x o s - u n s t a b l e " ;
flake-utils . url = " g i t h u b : n u m t i d e / f l a k e - u t i l s " ;
2025-03-09 14:48:36 -07:00
rust-flake . url = " h t t p s : / / g i t . l e r c h . o r g / l o b o / n i x - f l a k e - e x a m p l e s / a r c h i v e / e 3 9 1 d 2 3 d a 3 1 3 d 9 1 e 6 5 9 3 1 1 c 0 0 e c a 1 a d 5 c b 2 d 9 f a 7 . t a r . g z ? d i r = / r u s t " ; # Adjust this path as needed
2024-11-06 10:26:41 -08:00
# 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
] ;
} ;
}
) ;
}