about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/inframap
diff options
context:
space:
mode:
authorColin Arnott <colin@urandom.co.uk>2022-11-08 08:33:21 +0000
committerColin Arnott <colin@urandom.co.uk>2022-11-08 08:33:21 +0000
commitd7981c878884b107a864690844756ada3542fb35 (patch)
tree08b0ffae2396adc3b16be757b29852d627ffe183 /pkgs/applications/networking/cluster/inframap
parent401eb16105a415c01305379547e862528f897475 (diff)
inframap: init at 0.6.7
Fixes #185136
Diffstat (limited to 'pkgs/applications/networking/cluster/inframap')
-rw-r--r--pkgs/applications/networking/cluster/inframap/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/inframap/default.nix b/pkgs/applications/networking/cluster/inframap/default.nix
new file mode 100644
index 0000000000000..38307cadc7659
--- /dev/null
+++ b/pkgs/applications/networking/cluster/inframap/default.nix
@@ -0,0 +1,30 @@
+{ buildGoModule
+, fetchFromGitHub
+, lib
+}:
+buildGoModule rec {
+  pname = "inframap";
+  version = "0.6.7";
+
+  src = fetchFromGitHub {
+    owner = "cycloidio";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-Ol2FkCP7Wq7FcwOaDw9d20v4jkNIfewdMErz/kJR0/g=";
+  };
+
+  ldflags = [
+    "-s"
+    "-w"
+    "-X github.com/cycloidio/inframap/cmd.Version=${version}"
+  ];
+
+  vendorHash = "sha256-fD/u0gYfbhyYWjXtBDtL7zWRu7b7mzpLPEjB+ictP6o=";
+
+  meta = with lib; {
+    description = "Read your tfstate or HCL to generate a graph specific for each provider, showing only the resources that are most important/relevant.";
+    homepage = "https://github.com/cycloidio/inframap";
+    license = licenses.mit;
+    maintainers = with maintainers; [ urandom ];
+  };
+}