From 5c740539a889298ff285afc86584231d608e2893 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Fri, 18 Mar 2016 13:04:56 -0400 Subject: [PATCH] ansifilter: init at 1.15 --- lib/maintainers.nix | 1 + pkgs/tools/text/ansifilter/default.nix | 27 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 pkgs/tools/text/ansifilter/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 0b5883f291e1..498f0c21439a 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -12,6 +12,7 @@ abbradar = "Nikolay Amiantov "; aboseley = "Adam Boseley "; adev = "Adrien Devresse "; + Adjective-Object = "Maxwell Huang-Hobbs "; aespinosa = "Allan Espinosa "; aflatter = "Alexander Flatter "; aforemny = "Alexander Foremny "; diff --git a/pkgs/tools/text/ansifilter/default.nix b/pkgs/tools/text/ansifilter/default.nix new file mode 100644 index 000000000000..e47369f47559 --- /dev/null +++ b/pkgs/tools/text/ansifilter/default.nix @@ -0,0 +1,27 @@ +{ fetchurl, stdenv, pkgconfig, boost, lua }: +let version = "1.15"; + pkgsha = "65dc20cc1a03d4feba990f830186404c90462d599e5f4b37610d4d822d67aec4"; +in stdenv.mkDerivation { + name = "ansifilter-${version}"; + buildInputs = [ + pkgconfig boost lua + ]; + src = fetchurl { + url = "http://www.andre-simon.de/zip/ansifilter-${version}.tar.bz2"; + sha256 = pkgsha; + }; + meta = { + description = "Tool to convert ANSI to other formats"; + longDescription = '' + Tool to remove ANSI or convert them to another format + (HTML, TeX, LaTeX, RTF, Pango or BBCode) + ''; + + license = stdenv.lib.licenses.gpl1; + maintainers = [ stdenv.lib.maintainers.Adjective-Object ]; + }; + + makeFlags="PREFIX=$(out) conf_dir=$(out)/etc/ansifilter/"; + +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c540ff849c8a..8d0c7bc1632d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -540,6 +540,8 @@ let analog = callPackage ../tools/admin/analog {}; + ansifilter = callPackage ../tools/text/ansifilter {}; + apktool = callPackage ../development/tools/apktool { buildTools = androidenv.buildTools; };