From fa2393f03111219bf855ca325ac486ad971103bc Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Wed, 20 Apr 2022 00:44:41 +0200 Subject: [PATCH] pulumi: update updater so that it can work even with an empty NIX_PATH --- pkgs/tools/admin/pulumi/update-pulumi-shell.nix | 8 ++++++++ pkgs/tools/admin/pulumi/update.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 pkgs/tools/admin/pulumi/update-pulumi-shell.nix diff --git a/pkgs/tools/admin/pulumi/update-pulumi-shell.nix b/pkgs/tools/admin/pulumi/update-pulumi-shell.nix new file mode 100644 index 00000000000..cf69e640550 --- /dev/null +++ b/pkgs/tools/admin/pulumi/update-pulumi-shell.nix @@ -0,0 +1,8 @@ +{ nixpkgs ? import ../../../.. { } }: +with nixpkgs; +mkShell { + packages = [ + pkgs.gh + ]; +} + diff --git a/pkgs/tools/admin/pulumi/update.sh b/pkgs/tools/admin/pulumi/update.sh index fadc64cf1df..1097759c3bd 100755 --- a/pkgs/tools/admin/pulumi/update.sh +++ b/pkgs/tools/admin/pulumi/update.sh @@ -1,5 +1,5 @@ #!/usr/bin/env nix-shell -#!nix-shell -i bash -p gh +#!nix-shell update-pulumi-shell.nix -i bash # shellcheck shell=bash # Bash 3 compatible for Darwin