about summary refs log tree commit diff
path: root/pkgs/tools/text/tml
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/tml')
-rw-r--r--pkgs/tools/text/tml/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/text/tml/default.nix b/pkgs/tools/text/tml/default.nix
new file mode 100644
index 000000000000..067671e654f1
--- /dev/null
+++ b/pkgs/tools/text/tml/default.nix
@@ -0,0 +1,27 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "tml";
+  version = "0.6.0";
+
+  src = fetchFromGitHub {
+    owner = "liamg";
+    repo = "tml";
+    rev = "v${version}";
+    hash = "sha256-92GumJGdbqxhcIj1gdkiamUA4peDG/Ar6GEimj/E7lg=";
+  };
+
+  vendorHash = "sha256-YsEmxhyDMuvq48vdHFvgsIqbqDZbg8beS0nL7lsaFJ0=";
+
+  ldflags = [ "-s" "-w" ];
+
+  meta = with lib; {
+    description = "A tiny markup language for terminal output";
+    homepage = "https://github.com/liamg/tml";
+    license = licenses.unlicense;
+    maintainers = with maintainers; [ figsoda ];
+  };
+}