2020-03-06 08:56:28 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper }:
|
2019-01-18 13:18:04 +00:00
|
|
|
|
|
|
|
with lib;
|
2018-11-02 08:05:54 +00:00
|
|
|
|
|
|
|
let
|
2019-10-31 16:05:06 +00:00
|
|
|
data = import ./data.nix {};
|
2019-08-13 21:52:01 +00:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pulumi";
|
2019-10-31 16:05:06 +00:00
|
|
|
version = data.version;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
mv pulumi-* pulumi
|
|
|
|
'';
|
2018-11-02 08:05:54 +00:00
|
|
|
|
2019-10-31 16:05:06 +00:00
|
|
|
srcs = map (x: fetchurl x) data.pulumiPkgs.${stdenv.hostPlatform.system};
|
2018-11-02 08:05:54 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp * $out/bin/
|
2020-04-22 18:16:04 +00:00
|
|
|
'' + optionalString stdenv.isLinux ''
|
2020-03-06 08:56:28 +00:00
|
|
|
wrapProgram $out/bin/pulumi --set LD_LIBRARY_PATH "${stdenv.cc.cc.lib}/lib"
|
2018-11-02 08:05:54 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-22 18:15:47 +00:00
|
|
|
nativeBuildInputs = optionals stdenv.isLinux [ autoPatchelfHook makeWrapper ];
|
2019-01-18 13:18:04 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pulumi.io/";
|
2018-11-02 08:05:54 +00:00
|
|
|
description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
|
|
|
|
license = with licenses; [ asl20 ];
|
2019-10-31 16:05:06 +00:00
|
|
|
platforms = builtins.attrNames data.pulumiPkgs;
|
2018-11-02 08:05:54 +00:00
|
|
|
maintainers = with maintainers; [
|
2020-09-24 14:02:12 +00:00
|
|
|
ghuntley
|
2018-11-02 08:05:54 +00:00
|
|
|
peterromfeldhk
|
2019-10-31 16:05:06 +00:00
|
|
|
jlesquembre
|
2021-01-29 12:18:49 +00:00
|
|
|
cpcloud
|
2018-11-02 08:05:54 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|