dev-templates/pulumi/flake.nix

50 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-07-14 00:38:06 +02:00
{
description = "A Nix-flake-based Pulumi development environment";
2023-12-21 19:45:59 +01:00
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
2023-07-14 00:38:06 +02:00
outputs = { self, nixpkgs }:
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
2023-07-14 00:45:24 +02:00
# Pulumi plus:
# pulumi-watch
# pulumi-analyzer-* utilities
# pulumi-language-* utilities
# pulumi-resource-* utilities
2023-07-14 00:38:06 +02:00
pulumi-bin
2023-07-14 00:45:24 +02:00
# Python SDK
2023-07-14 00:38:06 +02:00
python311
2023-07-14 00:45:24 +02:00
# Go SDK
go_1_20
# Node.js SDK
nodejs
# .NET SDK
dotnet-sdk_6
# Java SDK
jdk
maven
# Kubernetes
2023-07-14 00:38:06 +02:00
kubectl
2023-07-14 00:45:24 +02:00
# Miscellaneous utilities
2023-07-14 00:38:06 +02:00
jq
];
};
});
};
}