@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl }:
2+
3+let
4+
5+ version = "0.16.2";
6+
7+ # switch the dropdown to “manual” on https://pulumi.io/quickstart/install.html # TODO: update script
8+ pulumiArchPackage = {
9+ "x86_64-linux" = {
10+ url = "https://get.pulumi.com/releases/sdk/pulumi-v${version}-linux-x64.tar.gz";
11+ sha256 = "16qgy2pj3xkf1adi3882fpsl99jwsm19111fi5vzh1xqf39sg549";
12+ };
13+ "x86_64-darwin" = {
14+ url = "https://get.pulumi.com/releases/sdk/pulumi-v${version}-darwin-x64.tar.gz";
15+ sha256 = "18ck9khspa0x798bdlwk8dzylbsq7s35xmla8yasd9qqlab1yy1a";
16+ };
17+ };
18+
19+in stdenv.mkDerivation rec {
20+ inherit version;
21+ name = "pulumi-${version}";
22+
23+ src = fetchurl pulumiArchPackage.${stdenv.hostPlatform.system};
24+
25+ installPhase = ''
26+ mkdir -p $out/bin
27+ cp * $out/bin/
28+ '';
29+
30+ meta = with stdenv.lib; {
31+ homepage = https://pulumi.io/;
32+ description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
33+ license = with licenses; [ asl20 ];
34+ platforms = builtins.attrNames pulumiArchPackage;
35+ maintainers = with maintainers; [
36+ peterromfeldhk
37+ ];
38+ };
39+}