diff --git a/pkgs/tools/admin/pulumi-packages/default.nix b/pkgs/tools/admin/pulumi-packages/default.nix new file mode 100644 index 000000000000..57cb7ad9061e --- /dev/null +++ b/pkgs/tools/admin/pulumi-packages/default.nix @@ -0,0 +1,8 @@ +{ callPackage }: +let + mkPulumiPackage = callPackage ./base.nix { }; + callPackage' = p: args: callPackage p (args // { inherit mkPulumiPackage; }); +in +{ + pulumi-random = callPackage' ./pulumi-random.nix { }; +} diff --git a/pkgs/tools/admin/pulumi-packages/pulumi-random.nix b/pkgs/tools/admin/pulumi-packages/pulumi-random.nix new file mode 100644 index 000000000000..4248ae73dda7 --- /dev/null +++ b/pkgs/tools/admin/pulumi-packages/pulumi-random.nix @@ -0,0 +1,23 @@ +{ lib +, mkPulumiPackage +}: +mkPulumiPackage rec { + owner = "pulumi"; + repo = "pulumi-random"; + version = "4.8.2"; + rev = "v${version}"; + hash = "sha256-tFEtBgNpl8090RuVMEkyGmdfpZK8wvOD4iog1JRq+GY="; + vendorHash = "sha256-H3mpKxb1lt+du3KterYPV6WWs1D0XXlmemMyMiZBnqs="; + cmdGen = "pulumi-tfgen-random"; + cmdRes = "pulumi-resource-random"; + extraLdflags = [ + "-X github.com/pulumi/${repo}/provider/v4/pkg/version.Version=v${version}" + ]; + __darwinAllowLocalNetworking = true; + meta = with lib; { + description = "A Pulumi provider that safely enables randomness for resources"; + homepage = "https://github.com/pulumi/pulumi-random"; + license = licenses.asl20; + maintainers = with maintainers; [ veehaitch trundle ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5ab1c5925ced..668b9fb95b38 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10221,6 +10221,10 @@ with pkgs; pulumi = callPackage ../tools/admin/pulumi { }; + pulumiPackages = recurseIntoAttrs ( + callPackage ../tools/admin/pulumi-packages { } + ); + pulumi-bin = callPackage ../tools/admin/pulumi-bin { }; p0f = callPackage ../tools/security/p0f { };