about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAustin Platt <austinplatt@gmail.com>2022-07-24 11:57:20 +0100
committerAustin Platt <austinplatt@gmail.com>2022-07-24 15:58:25 +0100
commit6795d5c3e81fef18bbf4f4b11de32f7eec139fb2 (patch)
tree4c22629cf1ac5670d063b93caff92c10e1ee2662
parent20e9eb6606928bdf73bf88c468723d7ce2210e9e (diff)
cw: init at 4.1.1
-rw-r--r--pkgs/tools/admin/cw/default.nix22
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/admin/cw/default.nix b/pkgs/tools/admin/cw/default.nix
new file mode 100644
index 000000000000..413fad40dcc3
--- /dev/null
+++ b/pkgs/tools/admin/cw/default.nix
@@ -0,0 +1,22 @@
+{ buildGoModule, fetchFromGitHub, lib, stdenv }:
+
+buildGoModule rec {
+  pname = "cw";
+  version = "4.1.1";
+
+  src = fetchFromGitHub {
+    owner = "lucagrulla";
+    repo = "cw";
+    rev = "v${version}";
+    sha256 = "sha256-JsWwvVEr7kSjUy0S6wVcn24Xyo4OHr5/uqmnjw6v+RI=";
+  };
+
+  vendorSha256 = "sha256-8L4q0IAvmNk5GCAC5agNfWFtokIkddO1Dec4m6/sWfg=";
+
+  meta = with lib; {
+    description = "The best way to tail AWS CloudWatch Logs from your terminal";
+    homepage = "https://github.com/lucagrulla/cw";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ onthestairs ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index c48078a0a5db..5895964435c6 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2093,6 +2093,8 @@ with pkgs;
 
   crystfel-headless = callPackage ../applications/science/physics/crystfel { withGui = false; };
 
+  cw = callPackage ../tools/admin/cw { };
+
   ec2-api-tools = callPackage ../tools/virtualization/ec2-api-tools { };
 
   ec2-ami-tools = callPackage ../tools/virtualization/ec2-ami-tools { };