Last active
September 1, 2024 08:27
-
-
Save danidiaz/90c59c4c77f511e18adb1e53506abfd0 to your computer and use it in GitHub Desktop.
Nix flake for AWS cli on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "AWS cli devshell"; | |
inputs = { | |
nixpkgs.url = "nixpkgs/24.05"; | |
}; | |
outputs = { self, nixpkgs }: | |
let system = "x86_64-linux"; | |
pkgs = nixpkgs.legacyPackages.${system}; | |
in | |
{ | |
devShells.${system}.default = | |
pkgs.mkShell | |
{ | |
packages = [ | |
pkgs.awscli2 | |
pkgs.jq | |
]; | |
shellHook = '' | |
export PS1='aws \W$ ' | |
''; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment