diff --git a/pkgs/by-name/pu/pulumi/plugins/pulumi-scala/package.nix b/pkgs/by-name/pu/pulumi/plugins/pulumi-scala/package.nix new file mode 100644 index 000000000000..37c0cdf79c8a --- /dev/null +++ b/pkgs/by-name/pu/pulumi/plugins/pulumi-scala/package.nix @@ -0,0 +1,32 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: +buildGoModule rec { + pname = "pulumi-scala"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "VirtusLab"; + repo = "besom"; + tag = "v${version}"; + hash = "sha256-ZOWC8S4OP2URfrzeegMmrJ9yC5xwCuC1cdEtBEsaCdk="; + }; + + sourceRoot = "source/language-plugin/pulumi-language-scala"; + vendorHash = "sha256-GGkHKLKtcx/uW9CvrFIFKr2sZD3Mx0RYQM3lI9HvMXY="; + + postInstall = '' + mv $out/bin/language-host $out/bin/${meta.mainProgram} + ''; + + meta = { + description = "Besom - a Pulumi SDK for Scala. Also, incidentally, a broom made of twigs tied round a stick. Brooms and besoms are used for protection, to ward off evil spirits, and cleansing of ritual spaces"; + homepage = "https://github.com/VirtusLab/besom"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ nikolaiser ]; + mainProgram = "pulumi-language-scala"; + platforms = lib.platforms.all; + }; +}