about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/text/asciigraph/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/text/asciigraph/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/text/asciigraph/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/asciigraph/default.nix b/nixpkgs/pkgs/tools/text/asciigraph/default.nix
new file mode 100644
index 000000000000..f7e066ea3cd4
--- /dev/null
+++ b/nixpkgs/pkgs/tools/text/asciigraph/default.nix
@@ -0,0 +1,25 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "asciigraph";
+  version = "0.6.0";
+
+  src = fetchFromGitHub {
+    owner = "guptarohit";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-tImHxTVKFFE5RcHCyJ3dyV6kGp3keZzDRhpHsp+IGB0=";
+  };
+
+  vendorHash = null;
+
+  ldflags = [ "-s" "-w" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/guptarohit/asciigraph";
+    description = "Lightweight ASCII line graph ╭┈╯ command line app";
+    mainProgram = "asciigraph";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ mmahut ];
+  };
+}