2019-01-18 13:18:04 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook }:
|
|
|
|
|
|
|
|
with lib;
|
2018-11-02 08:05:54 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2019-09-17 18:29:57 +00:00
|
|
|
version = "1.1.0";
|
2018-11-02 08:05:54 +00:00
|
|
|
|
|
|
|
# switch the dropdown to “manual” on https://pulumi.io/quickstart/install.html # TODO: update script
|
|
|
|
pulumiArchPackage = {
|
2019-08-13 21:52:01 +00:00
|
|
|
x86_64-linux = {
|
2018-11-02 08:05:54 +00:00
|
|
|
url = "https://get.pulumi.com/releases/sdk/pulumi-v${version}-linux-x64.tar.gz";
|
2019-09-17 18:29:57 +00:00
|
|
|
sha256 = "1r498pxsjdj9mhdzh9vh4nw8fcjxfga44xlg43b0yakkgrp7c224";
|
2018-11-02 08:05:54 +00:00
|
|
|
};
|
2019-08-13 21:52:01 +00:00
|
|
|
x86_64-darwin = {
|
2018-11-02 08:05:54 +00:00
|
|
|
url = "https://get.pulumi.com/releases/sdk/pulumi-v${version}-darwin-x64.tar.gz";
|
2019-09-17 18:29:57 +00:00
|
|
|
sha256 = "02nr5yxn5aqgbwrnl4shgd6rh4n4v8giqki4qkbgx74xf3bbwihg";
|
2018-11-02 08:05:54 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
in stdenv.mkDerivation {
|
2018-11-02 08:05:54 +00:00
|
|
|
inherit version;
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pulumi";
|
2018-11-02 08:05:54 +00:00
|
|
|
|
|
|
|
src = fetchurl pulumiArchPackage.${stdenv.hostPlatform.system};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp * $out/bin/
|
|
|
|
'';
|
|
|
|
|
2019-01-18 13:18:04 +00:00
|
|
|
buildInputs = optionals stdenv.isLinux [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
meta = {
|
2018-11-02 08:05:54 +00:00
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|