nixpkgs/pkgs/tools/admin/pulumi/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

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