summary refs log tree commit diff
path: root/pkgs/tools/text/aha/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/text/aha/default.nix')
-rw-r--r--pkgs/tools/text/aha/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/text/aha/default.nix b/pkgs/tools/text/aha/default.nix
new file mode 100644
index 00000000000..a0be19607ea
--- /dev/null
+++ b/pkgs/tools/text/aha/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitHub }:
+
+let version = "0.4.8"; in
+stdenv.mkDerivation rec {
+  name = "aha-${version}";
+
+  src = fetchFromGitHub {
+    sha256 = "1209rda6kc9x88b47y1035zs9lxk0x3qzsb87f8m5b55fdkgxqlj";
+    rev = version;
+    repo = "aha";
+    owner = "theZiz";
+  };
+
+  meta = with stdenv.lib; {
+    inherit version;
+    description = "ANSI HTML Adapter";
+    longDescription = ''
+      aha takes ANSI SGR-coloured input and produces W3C-conformant HTML code.
+    '';
+    homepage = https://github.com/theZiz/aha;
+    downloadPage = https://github.com/theZiz/aha/releases;
+    license = with licenses; [ lgpl2Plus mpl11 ];
+    platforms = with platforms; linux;
+    maintainers = with maintainers; [ nckx ];
+  };
+
+  makeFlags = "PREFIX=$(out)";
+
+  enableParallelBuilding = true;
+}