diff options
author | Vincent Haupert <mail@vincent-haupert.de> | 2022-10-17 19:19:15 +0200 |
---|---|---|
committer | Vincent Haupert <mail@vincent-haupert.de> | 2022-11-06 12:58:55 +0100 |
commit | f572b05f8417109d82cd55fdfb8faa97a2168330 (patch) | |
tree | 5db3cabe99f764a5d643f261f0d608b2f2eb111d /pkgs/tools/admin/pulumi-bin/default.nix | |
parent | f804318543bece66b7d0cd55163c19ac8a83dcb0 (diff) |
pulumi-bin: rename directory to reflect package name
Diffstat (limited to 'pkgs/tools/admin/pulumi-bin/default.nix')
-rw-r--r-- | pkgs/tools/admin/pulumi-bin/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/admin/pulumi-bin/default.nix b/pkgs/tools/admin/pulumi-bin/default.nix new file mode 100644 index 0000000000000..71c61d7a05434 --- /dev/null +++ b/pkgs/tools/admin/pulumi-bin/default.nix @@ -0,0 +1,43 @@ +{ lib, stdenv, fetchurl, autoPatchelfHook, makeWrapper, installShellFiles }: + +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 = '' + install -D -t $out/bin/ * + '' + optionalString stdenv.isLinux '' + 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) + ''; + + nativeBuildInputs = [ installShellFiles ] ++ 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"; + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + license = with licenses; [ asl20 ]; + platforms = builtins.attrNames data.pulumiPkgs; + maintainers = with maintainers; [ + ghuntley + peterromfeldhk + jlesquembre + cpcloud + ]; + }; +} |