Skip to content

Commit

Permalink
Merge pull request #257339 from tie/pulumi-packages-yandex
Browse files Browse the repository at this point in the history
pulumiPackages.pulumi-yandex-unofficial: init at 0.98.0
  • Loading branch information
pbsds authored Apr 21, 2024
2 parents 743a260 + c73e6e8 commit 6143fc5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/tools/admin/pulumi-packages/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ let
, vendorHash
, cmd
, extraLdflags
, env
, ...
}@args: buildGoModule (rec {
inherit pname src vendorHash version;
inherit pname src vendorHash version env;

sourceRoot = "${src.name}/provider";

Expand Down Expand Up @@ -88,6 +89,7 @@ in
, cmdGen
, cmdRes
, extraLdflags
, env ? { }
, meta
, fetchSubmodules ? false
, ...
Expand All @@ -99,14 +101,14 @@ let
};

pulumi-gen = mkBasePackage rec {
inherit src version vendorHash extraLdflags;
inherit src version vendorHash extraLdflags env;

cmd = cmdGen;
pname = cmdGen;
};
in
mkBasePackage ({
inherit meta src version vendorHash extraLdflags;
inherit meta src version vendorHash extraLdflags env;

pname = repo;

Expand Down
1 change: 1 addition & 0 deletions pkgs/tools/admin/pulumi-packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ in
pulumi-language-nodejs = callPackage ./pulumi-language-nodejs.nix { };
pulumi-language-python = callPackage ./pulumi-language-python.nix { };
pulumi-random = callPackage' ./pulumi-random.nix { };
pulumi-yandex-unofficial = callPackage' ./pulumi-yandex-unofficial.nix { };
}
27 changes: 27 additions & 0 deletions pkgs/tools/admin/pulumi-packages/pulumi-yandex-unofficial.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ lib
, mkPulumiPackage
}:
# Note that we are not using https://github.com/pulumi/pulumi-yandex because
# it has been archived in 2022.
mkPulumiPackage rec {
owner = "Regrau";
repo = "pulumi-yandex";
version = "0.98.0";
rev = "v${version}";
hash = "sha256-Olwl4JNrJUiJaGha7ZT0Qb0+6hRKxOOy06eKMJfYf0I=";
vendorHash = "sha256-8mu0msSq59f5GZNo7YIGuNTYealGyEL9kwk0jCcSO68=";
cmdGen = "pulumi-tfgen-yandex";
cmdRes = "pulumi-resource-yandex";
extraLdflags = [
"-X github.com/regrau/${repo}/provider/pkg/version.Version=v${version}"
];
__darwinAllowLocalNetworking = true;
env.GOWORK = "off";
meta = with lib; {
description = "Unofficial Yandex Cloud Resource Provider";
homepage = "https://github.com/Regrau/pulumi-yandex";
license = licenses.asl20;
maintainers = with maintainers; [ tie veehaitch trundle ];
mainProgram = cmdRes;
};
}

0 comments on commit 6143fc5

Please sign in to comment.