summary refs log blame commit diff
path: root/pkgs/tools/admin/pulumi/default.nix
blob: 89fee3e61605c5bf788c4ebd9bae65bf83e8e4e3 (plain) (tree)
1
2
3
4
5
6
7
8
                                                         

         

   
                              
                        
                   




                         
 
                                                                           



                     
                                       
                                                                               

     
                                                                                

          
                                    

                                                                                                                  
                                                   
                                     
              
                    
                 
             


      
{ 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";
    license = with licenses; [ asl20 ];
    platforms = builtins.attrNames data.pulumiPkgs;
    maintainers = with maintainers; [
      ghuntley
      peterromfeldhk
      jlesquembre
      cpcloud
    ];
  };
}