nixpkgs/pkgs/tools/text/ansifilter/default.nix

36 lines
972 B
Nix
Raw Normal View History

{ fetchurl, lib, stdenv, pkg-config, boost, lua }:
2017-03-01 01:21:59 +00:00
stdenv.mkDerivation rec {
pname = "ansifilter";
2021-02-07 01:36:56 +00:00
version = "2.18";
2017-03-01 01:21:59 +00:00
2016-03-18 17:04:56 +00:00
src = fetchurl {
url = "http://www.andre-simon.de/zip/ansifilter-${version}.tar.bz2";
2021-02-07 01:36:56 +00:00
sha256 = "sha256-Zs8BfTakPV9q4gYJzjtYZHSU7mwOQfxoLFmL/859fTk=";
2016-03-18 17:04:56 +00:00
};
2017-03-01 01:21:59 +00:00
nativeBuildInputs = [ pkg-config ];
2017-03-01 01:21:59 +00:00
buildInputs = [ boost lua ];
postPatch = ''
substituteInPlace src/makefile --replace "CC=g++" "CC=c++"
'';
makeFlags = [
"PREFIX=${placeholder "out"}"
"conf_dir=/etc/ansifilter"
];
2017-03-01 01:21:59 +00:00
meta = with lib; {
2016-03-18 17:04:56 +00:00
description = "Tool to convert ANSI to other formats";
longDescription = ''
Tool to remove ANSI or convert them to another format
2017-03-01 01:21:59 +00:00
(HTML, TeX, LaTeX, RTF, Pango or BBCode)
2016-03-18 17:04:56 +00:00
'';
homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php";
license = licenses.gpl3;
maintainers = [ maintainers.Adjective-Object ];
platforms = platforms.linux ++ platforms.darwin;
2016-03-18 17:04:56 +00:00
};
}