about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-28 00:10:14 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-28 00:10:14 +0200
commit999241a90721817bb3dd9c6e464974d201638be9 (patch)
treede8871792dfd4855f7e9755bccfe5972589c9674 /pkgs
parent4f0b6fa3ba09f7228184853df3e9a48ca1e4b44b (diff)
downloadnixlib-999241a90721817bb3dd9c6e464974d201638be9.tar
nixlib-999241a90721817bb3dd9c6e464974d201638be9.tar.gz
nixlib-999241a90721817bb3dd9c6e464974d201638be9.tar.bz2
nixlib-999241a90721817bb3dd9c6e464974d201638be9.tar.lz
nixlib-999241a90721817bb3dd9c6e464974d201638be9.tar.xz
nixlib-999241a90721817bb3dd9c6e464974d201638be9.tar.zst
nixlib-999241a90721817bb3dd9c6e464974d201638be9.zip
Add aha 0.4.8: quick & dirty ANSI-to-HTML converter
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/text/aha/default.nix30
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/text/aha/default.nix b/pkgs/tools/text/aha/default.nix
new file mode 100644
index 000000000000..a0be19607ea5
--- /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;
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 291570894440..c63e02cef0db 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -499,6 +499,8 @@ let
 
   afl = callPackage ../tools/security/afl { };
 
+  aha = callPackage ../tools/text/aha { };
+
   ahcpd = callPackage ../tools/networking/ahcpd { };
 
   aiccu = callPackage ../tools/networking/aiccu { };