mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
pulumi: passthru.{pkgs,withPackages}
This commit is contained in:
parent
b725a0b647
commit
ce1faf92f2
@ -5,6 +5,11 @@
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, git
|
||||
# passthru
|
||||
, runCommand
|
||||
, makeWrapper
|
||||
, pulumi
|
||||
, pulumiPackages
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@ -76,6 +81,19 @@ buildGoModule rec {
|
||||
--zsh <($out/bin/pulumi gen-completion zsh)
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
pkgs = pulumiPackages;
|
||||
withPackages = f: runCommand "${pulumi.name}-with-packages"
|
||||
{
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
}
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${pulumi}/bin/pulumi $out/bin/pulumi \
|
||||
--suffix PATH : ${lib.makeSearchPath "bin" (f pulumiPackages)}
|
||||
'';
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://pulumi.io/";
|
||||
description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
|
||||
|
Loading…
Reference in New Issue
Block a user