nixpkgs-suyu/pkgs/tools/admin/pulumi/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper, installShellFiles }:
2019-01-18 14:18:04 +01:00
with lib;
2018-11-02 09:05:54 +01:00
let
data = import ./data.nix {};
2019-08-13 23:52:01 +02:00
in stdenv.mkDerivation {
pname = "pulumi";
version = data.version;
postUnpack = ''
mv pulumi-* pulumi
'';
2018-11-02 09:05:54 +01:00
srcs = map (x: fetchurl x) data.pulumiPkgs.${stdenv.hostPlatform.system};
2018-11-02 09:05:54 +01:00
installPhase = ''
install -D -t $out/bin/ *
2020-04-22 20:16:04 +02:00
'' + optionalString stdenv.isLinux ''
2020-03-06 09:56:28 +01: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)
2018-11-02 09:05:54 +01:00
'';
nativeBuildInputs = [ installShellFiles ] ++ optionals stdenv.isLinux [ autoPatchelfHook makeWrapper ];
2019-01-18 14:18:04 +01:00
meta = {
homepage = "https://pulumi.io/";
2018-11-02 09:05:54 +01:00
description = "Pulumi is a cloud development platform that makes creating cloud programs easy and productive";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2018-11-02 09:05:54 +01:00
license = with licenses; [ asl20 ];
platforms = builtins.attrNames data.pulumiPkgs;
2018-11-02 09:05:54 +01:00
maintainers = with maintainers; [
2020-09-24 16:02:12 +02:00
ghuntley
2018-11-02 09:05:54 +01:00
peterromfeldhk
jlesquembre
2021-01-29 13:18:49 +01:00
cpcloud
2018-11-02 09:05:54 +01:00
];
};
}