mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 09:31:01 +00:00
36 lines
870 B
Nix
36 lines
870 B
Nix
{ 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/
|
|
wrapProgram $out/bin/pulumi --set LD_LIBRARY_PATH "${stdenv.cc.cc.lib}/lib"
|
|
'';
|
|
|
|
buildInputs = 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; [
|
|
peterromfeldhk
|
|
jlesquembre
|
|
];
|
|
};
|
|
}
|