2019-01-18 14:18:04 +01:00
|
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook }:
|
|
|
|
|
|
|
|
with lib;
|
2018-11-02 09:05:54 +01:00
|
|
|
|
|
|
|
let
|
2019-10-31 17:05:06 +01:00
|
|
|
data = import ./data.nix {};
|
2019-08-13 23:52:01 +02:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "pulumi";
|
2019-10-31 17:05:06 +01:00
|
|
|
version = data.version;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
mv pulumi-* pulumi
|
|
|
|
'';
|
2018-11-02 09:05:54 +01:00
|
|
|
|
2019-10-31 17:05:06 +01:00
|
|
|
srcs = map (x: fetchurl x) data.pulumiPkgs.${stdenv.hostPlatform.system};
|
2018-11-02 09:05:54 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp * $out/bin/
|
|
|
|
'';
|
|
|
|
|
2019-01-18 14:18:04 +01:00
|
|
|
buildInputs = optionals stdenv.isLinux [ autoPatchelfHook ];
|
|
|
|
|
|
|
|
meta = {
|
2018-11-02 09:05:54 +01:00
|
|
|
homepage = https://pulumi.io/;
|
|
|
|
description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
|
|
|
|
license = with licenses; [ asl20 ];
|
2019-10-31 17:05:06 +01:00
|
|
|
platforms = builtins.attrNames data.pulumiPkgs;
|
2018-11-02 09:05:54 +01:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
peterromfeldhk
|
2019-10-31 17:05:06 +01:00
|
|
|
jlesquembre
|
2018-11-02 09:05:54 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|