2022-11-21 17:40:18 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper, installShellFiles }:
|
|
|
|
|
|
|
|
let
|
|
|
|
data = import ./data.nix {};
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "pulumi";
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit (data) version;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
mv pulumi-* pulumi
|
|
|
|
'';
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
srcs = map fetchurl data.pulumiPkgs.${stdenv.hostPlatform.system};
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D -t $out/bin/ *
|
2024-09-26 11:04:55 +00:00
|
|
|
'' + lib.optionalString stdenv.hostPlatform.isLinux ''
|
2022-11-21 17:40:18 +00:00
|
|
|
wrapProgram $out/bin/pulumi --set LD_LIBRARY_PATH "${stdenv.cc.cc.lib}/lib"
|
|
|
|
'' + ''
|
|
|
|
installShellCompletion --cmd pulumi \
|
|
|
|
--bash <($out/bin/pulumi completion bash) \
|
|
|
|
--fish <($out/bin/pulumi completion fish) \
|
|
|
|
--zsh <($out/bin/pulumi completion zsh)
|
|
|
|
'';
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.hostPlatform.isLinux [ autoPatchelfHook makeWrapper ];
|
2023-04-12 12:48:02 +00:00
|
|
|
buildInputs = [ stdenv.cc.cc.libgcc or null ];
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://pulumi.io/";
|
|
|
|
description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
|
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
platforms = builtins.attrNames data.pulumiPkgs;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
ghuntley
|
|
|
|
peterromfeldhk
|
|
|
|
jlesquembre
|
|
|
|
cpcloud
|
|
|
|
];
|
2024-09-19 14:19:46 +00:00
|
|
|
hydraPlatforms = [ ]; # Hydra fails with "Output limit exceeded"
|
2022-11-21 17:40:18 +00:00
|
|
|
};
|
|
|
|
}
|