about summary refs log tree commit diff
path: root/pkgs/tools/misc/infracost
diff options
context:
space:
mode:
author06kellyjac <dev@j-k.io>2021-07-15 12:55:13 +0100
committer06kellyjac <dev@j-k.io>2021-07-15 12:55:13 +0100
commit358457208c35abb322fd622dc225ac56f846f7d3 (patch)
tree80fc77f008d0705d8aa86e2d4f1a2c41b01da147 /pkgs/tools/misc/infracost
parent4b815c43897bd4d4619862d82babde813e495141 (diff)
infracost: 0.9.3 -> 0.9.4
Diffstat (limited to 'pkgs/tools/misc/infracost')
-rw-r--r--pkgs/tools/misc/infracost/default.nix14
1 files changed, 3 insertions, 11 deletions
diff --git a/pkgs/tools/misc/infracost/default.nix b/pkgs/tools/misc/infracost/default.nix
index c912eb3322bf8..3d91dd6d9abbc 100644
--- a/pkgs/tools/misc/infracost/default.nix
+++ b/pkgs/tools/misc/infracost/default.nix
@@ -2,13 +2,13 @@
 
 buildGoModule rec {
   pname = "infracost";
-  version = "0.9.3";
+  version = "0.9.4";
 
   src = fetchFromGitHub {
     owner = "infracost";
     rev = "v${version}";
     repo = "infracost";
-    sha256 = "sha256-3AH/VUKIno/jObep5GNfIpyOW5TcfZ5UZyornJWTGOw=";
+    sha256 = "sha256-OQwMO9bhPK+Wjob8rAFYJQRpAYf1bPdRi2BjETjpSpE=";
   };
   vendorSha256 = "sha256-zMEtVPyzwW4SrbpydDFDqgHEC0/khkrSxlEnQ5I0he8=";
 
@@ -25,12 +25,7 @@ buildGoModule rec {
   '';
 
   postInstall = ''
-    # panic if .config directory can't be accessed
-    # https://github.com/infracost/infracost/pull/862
-    export HOME="$TMPDIR"
-    mkdir -p "$HOME/.config/infracost"
     export INFRACOST_SKIP_UPDATE_CHECK=true
-
     installShellCompletion --cmd infracost \
       --bash <($out/bin/infracost completion --shell bash) \
       --fish <($out/bin/infracost completion --shell fish) \
@@ -41,10 +36,7 @@ buildGoModule rec {
   installCheckPhase = ''
     runHook preInstallCheck
 
-    export HOME="$TMPDIR"
-    mkdir -p "$HOME/.config/infracost"
     export INFRACOST_SKIP_UPDATE_CHECK=true
-
     $out/bin/infracost --help
     $out/bin/infracost --version | grep "v${version}"
 
@@ -60,7 +52,7 @@ buildGoModule rec {
       This helps developers, DevOps et al. quickly see the cost breakdown and
       compare different deployment options upfront.
     '';
-    license = [ licenses.asl20 ];
+    license = licenses.asl20;
     maintainers = with maintainers; [ davegallant jk ];
   };
 }