2020-04-24 23:36:52 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
data = import ./data.nix {};
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "pulumi";
|
|
|
|
version = data.version;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
mv pulumi-* pulumi
|
|
|
|
'';
|
|
|
|
|
|
|
|
srcs = map (x: fetchurl x) data.pulumiPkgs.${stdenv.hostPlatform.system};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp * $out/bin/
|
|
|
|
'' + optionalString stdenv.isLinux ''
|
|
|
|
wrapProgram $out/bin/pulumi --set LD_LIBRARY_PATH "${stdenv.cc.cc.lib}/lib"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = optionals stdenv.isLinux [ autoPatchelfHook makeWrapper ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://pulumi.io/";
|
|
|
|
description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
platforms = builtins.attrNames data.pulumiPkgs;
|
|
|
|
maintainers = with maintainers; [
|
2020-09-25 04:45:31 +00:00
|
|
|
ghuntley
|
2020-04-24 23:36:52 +00:00
|
|
|
peterromfeldhk
|
|
|
|
jlesquembre
|
2021-02-05 17:12:51 +00:00
|
|
|
cpcloud
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|