diff --git a/pkgs/by-name/pu/pulumi-esc/package.nix b/pkgs/by-name/pu/pulumi-esc/package.nix new file mode 100644 index 000000000000..b74282d66de0 --- /dev/null +++ b/pkgs/by-name/pu/pulumi-esc/package.nix @@ -0,0 +1,36 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "pulumi-esc"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "pulumi"; + repo = "esc"; + rev = "v${version}"; + hash = "sha256-fpS4bnS51Ch3dUvwqHdD4DBpZFZQCqwDlYWotyEfvlQ="; + }; + + subPackages = "cmd/esc"; + + vendorHash = "sha256-Wcll/UWgCTBd1Bkbdt6kZZ6jgouWkzkFicv3CvX5hw4="; + + ldflags = [ + "-s" + "-w" + "-X=github.com/pulumi/esc/cmd/esc/cli/version.Version=${src.rev}" + ]; + + meta = with lib; { + description = "Pulumi ESC (Environments, Secrets, and Configuration) for cloud applications and infrastructure"; + homepage = "https://github.com/pulumi/esc/tree/main"; + changelog = "https://github.com/pulumi/esc/blob/${src.rev}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ yomaq ]; + mainProgram = "esc"; + }; +}