summary refs log tree commit diff
path: root/pkgs/tools/misc/infracost/default.nix
diff options
context:
space:
mode:
authorDave Gallant <davegallant@gmail.com>2021-06-18 12:06:52 -0400
committerDave Gallant <davegallant@gmail.com>2021-06-18 12:06:52 -0400
commite7059c01e119a983e9ecfbac245268dc8f43125c (patch)
treebb739204f392f91a0d0b3e9b74f96a734d54f6c4 /pkgs/tools/misc/infracost/default.nix
parent33d42ad7cf2769ce6364ed4e52afa8e9d1439d58 (diff)
downloadnixpkgs-e7059c01e119a983e9ecfbac245268dc8f43125c.tar
nixpkgs-e7059c01e119a983e9ecfbac245268dc8f43125c.tar.gz
nixpkgs-e7059c01e119a983e9ecfbac245268dc8f43125c.tar.bz2
nixpkgs-e7059c01e119a983e9ecfbac245268dc8f43125c.tar.lz
nixpkgs-e7059c01e119a983e9ecfbac245268dc8f43125c.tar.xz
nixpkgs-e7059c01e119a983e9ecfbac245268dc8f43125c.tar.zst
nixpkgs-e7059c01e119a983e9ecfbac245268dc8f43125c.zip
infracost: init at 0.9.1
Diffstat (limited to 'pkgs/tools/misc/infracost/default.nix')
-rw-r--r--pkgs/tools/misc/infracost/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/misc/infracost/default.nix b/pkgs/tools/misc/infracost/default.nix
new file mode 100644
index 00000000000..286bc4cbca2
--- /dev/null
+++ b/pkgs/tools/misc/infracost/default.nix
@@ -0,0 +1,25 @@
+{ lib, buildGoModule, fetchFromGitHub, terraform }:
+
+buildGoModule rec {
+  pname = "infracost";
+  version = "0.9.1";
+
+  src = fetchFromGitHub {
+    owner = "infracost";
+    rev = "v${version}";
+    repo = "infracost";
+    sha256 = "sha256-3dR4NZ1PiMuHNO+xl3zxeBLPOZTLAbJ0VtYJNYpJuXI=";
+  };
+
+  vendorSha256 = "sha256-YHewZsIiDPsgJVYwQX/FovlD+UzJflXy/0oglk8ZkKk=";
+
+  checkInputs = [ terraform ];
+  checkPhase = "make test";
+
+  meta = with lib; {
+    description = "Cloud cost estimates for Terraform in your CLI and pull requests";
+    homepage = "https://github.com/infracost/infracost";
+    license = [ licenses.asl20 ];
+    maintainers = [ maintainers.davegallant ];
+  };
+}