-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade nix shell to using a nix flake
- Loading branch information
1 parent
fbe2db3
commit db88e1a
Showing
5 changed files
with
98 additions
and
51 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
description = "Flake for collie-cli"; | ||
|
||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.05"; | ||
}; | ||
|
||
|
||
outputs = { self, nixpkgs }: | ||
|
||
let | ||
shellsForSystem = system: | ||
let | ||
pkgs = import nixpkgs { inherit system; config.allowUnfree = false; }; | ||
in | ||
{ | ||
default = pkgs.mkShell { | ||
name = "collie-cli"; | ||
packages = with pkgs; | ||
[ | ||
deno | ||
|
||
# used for build scripts | ||
unzip | ||
gnused | ||
|
||
# cloud provider clis | ||
awscli2 | ||
azure-cli | ||
google-cloud-sdk | ||
|
||
# terraform | ||
opentofu | ||
terragrunt | ||
tflint | ||
terraform-docs | ||
|
||
# for collie foundation docs | ||
nodejs | ||
]; | ||
}; | ||
}; | ||
|
||
|
||
in | ||
{ | ||
devShells = { | ||
aarch64-darwin = (shellsForSystem "aarch64-darwin"); | ||
x86_64-darwin = (shellsForSystem "x86_64-darwin"); | ||
x86_64-linux = (shellsForSystem "x86_64-linux"); | ||
}; | ||
}; | ||
} |