diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/text/ansifilter/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/text/ansifilter/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/text/ansifilter/default.nix b/nixpkgs/pkgs/tools/text/ansifilter/default.nix new file mode 100644 index 000000000000..97b06b9a0c7e --- /dev/null +++ b/nixpkgs/pkgs/tools/text/ansifilter/default.nix @@ -0,0 +1,35 @@ +{ fetchurl, lib, stdenv, pkg-config, boost, lua }: + +stdenv.mkDerivation rec { + pname = "ansifilter"; + version = "2.18"; + + src = fetchurl { + url = "http://www.andre-simon.de/zip/ansifilter-${version}.tar.bz2"; + sha256 = "sha256-Zs8BfTakPV9q4gYJzjtYZHSU7mwOQfxoLFmL/859fTk="; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ boost lua ]; + + postPatch = '' + substituteInPlace src/makefile --replace "CC=g++" "CC=c++" + ''; + + makeFlags = [ + "PREFIX=${placeholder "out"}" + "conf_dir=/etc/ansifilter" + ]; + + meta = with lib; { + 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) + ''; + homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php"; + license = licenses.gpl3; + maintainers = [ maintainers.Adjective-Object ]; + platforms = platforms.linux ++ platforms.darwin; + }; +} |