2022-07-30 23:41:46 +03:00
|
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper, installShellFiles }:
|
2019-01-18 16:18:04 +03:00
|
|
|
|
2018-11-02 11:05:54 +03:00
|
|
|
let
|
2019-10-31 19:05:06 +03:00
|
|
|
data = import ./data.nix {};
|
2019-08-14 00:52:01 +03:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "pulumi";
|
2019-10-31 19:05:06 +03:00
|
|
|
version = data.version;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
mv pulumi-* pulumi
|
|
|
|
'';
|
2018-11-02 11:05:54 +03:00
|
|
|
|
2019-10-31 19:05:06 +03:00
|
|
|
srcs = map (x: fetchurl x) data.pulumiPkgs.${stdenv.hostPlatform.system};
|
2018-11-02 11:05:54 +03:00
|
|
|
|
|
|
|
installPhase = ''
|
2022-07-30 23:41:46 +03:00
|
|
|
install -D -t $out/bin/ *
|
2023-01-24 19:35:54 +03:00
|
|
|
'' + lib.optionalString stdenv.isLinux ''
|
2020-03-06 11:56:28 +03:00
|
|
|
wrapProgram $out/bin/pulumi --set LD_LIBRARY_PATH "${stdenv.cc.cc.lib}/lib"
|
2022-07-30 23:41:46 +03:00
|
|
|
'' + ''
|
|
|
|
installShellCompletion --cmd pulumi \
|
|
|
|
--bash <($out/bin/pulumi completion bash) \
|
|
|
|
--fish <($out/bin/pulumi completion fish) \
|
|
|
|
--zsh <($out/bin/pulumi completion zsh)
|
2018-11-02 11:05:54 +03:00
|
|
|
'';
|
|
|
|
|
2023-01-24 19:35:54 +03:00
|
|
|
nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ autoPatchelfHook makeWrapper ];
|
2023-04-11 09:52:37 +03:00
|
|
|
buildInputs = [ stdenv.cc.cc.libgcc or null ];
|
2019-01-18 16:18:04 +03:00
|
|
|
|
2023-01-24 19:35:54 +03:00
|
|
|
meta = with lib; {
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://pulumi.io/";
|
2018-11-02 11:05:54 +03:00
|
|
|
description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
|
2022-06-11 14:39:29 +03:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2018-11-02 11:05:54 +03:00
|
|
|
license = with licenses; [ asl20 ];
|
2019-10-31 19:05:06 +03:00
|
|
|
platforms = builtins.attrNames data.pulumiPkgs;
|
2018-11-02 11:05:54 +03:00
|
|
|
maintainers = with maintainers; [
|
2020-09-24 17:02:12 +03:00
|
|
|
ghuntley
|
2018-11-02 11:05:54 +03:00
|
|
|
peterromfeldhk
|
2019-10-31 19:05:06 +03:00
|
|
|
jlesquembre
|
2021-01-29 15:18:49 +03:00
|
|
|
cpcloud
|
2018-11-02 11:05:54 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|