summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorLéo Gaspard <leo@gaspard.io>2018-11-28 10:09:18 +0900
committerLéo Gaspard <leo@gaspard.io>2018-11-28 10:09:18 +0900
commit8231e7181b285cfc8c53bcd3c433455a7079135b (patch)
tree7fe8fb3d1a6aa9fa9e27c85e80fe812c6141e42e /pkgs/tools
parent6ef78a415e2ad82ee266df9e856a25dd93d2bb9e (diff)
parent08699733bbf38cb2ab587688db727e0fd8b83cce (diff)
Merge branch 'pr-49633'
* pr-49633:
  pulumi: init at 0.16.2
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/admin/pulumi/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/admin/pulumi/default.nix b/pkgs/tools/admin/pulumi/default.nix
new file mode 100644
index 0000000000000..b24b88fa96a2f
--- /dev/null
+++ b/pkgs/tools/admin/pulumi/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchurl }:
+
+let
+
+  version = "0.16.2";
+
+  # switch the dropdown to “manual” on https://pulumi.io/quickstart/install.html # TODO: update script
+  pulumiArchPackage = {
+    "x86_64-linux" = {
+      url = "https://get.pulumi.com/releases/sdk/pulumi-v${version}-linux-x64.tar.gz";
+      sha256 = "16qgy2pj3xkf1adi3882fpsl99jwsm19111fi5vzh1xqf39sg549";
+    };
+    "x86_64-darwin" = {
+      url = "https://get.pulumi.com/releases/sdk/pulumi-v${version}-darwin-x64.tar.gz";
+      sha256 = "18ck9khspa0x798bdlwk8dzylbsq7s35xmla8yasd9qqlab1yy1a";
+    };
+  };
+
+in stdenv.mkDerivation rec {
+  inherit version;
+  name = "pulumi-${version}";
+
+  src = fetchurl pulumiArchPackage.${stdenv.hostPlatform.system};
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp * $out/bin/
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = https://pulumi.io/;
+    description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
+    license = with licenses; [ asl20 ];
+    platforms = builtins.attrNames pulumiArchPackage;
+    maintainers = with maintainers; [
+      peterromfeldhk
+    ];
+  };
+}