1 { lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper, installShellFiles }:
6 data = import ./data.nix {};
7 in stdenv.mkDerivation {
9 version = data.version;
15 srcs = map (x: fetchurl x) data.pulumiPkgs.${stdenv.hostPlatform.system};
18 install -D -t $out/bin/ *
19 '' + optionalString stdenv.isLinux ''
20 wrapProgram $out/bin/pulumi --set LD_LIBRARY_PATH "${stdenv.cc.cc.lib}/lib"
22 installShellCompletion --cmd pulumi \
23 --bash <($out/bin/pulumi completion bash) \
24 --fish <($out/bin/pulumi completion fish) \
25 --zsh <($out/bin/pulumi completion zsh)
28 nativeBuildInputs = [ installShellFiles ] ++ optionals stdenv.isLinux [ autoPatchelfHook makeWrapper ];
31 homepage = "https://pulumi.io/";
32 description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
33 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
34 license = with licenses; [ asl20 ];
35 platforms = builtins.attrNames data.pulumiPkgs;
36 maintainers = with maintainers; [