linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / text / ansifilter / default.nix
blob97b06b9a0c7e6cbc4ee565300d5c6f04212240f8
1 { fetchurl, lib, stdenv, pkg-config, boost, lua }:
3 stdenv.mkDerivation rec {
4   pname = "ansifilter";
5   version = "2.18";
7   src = fetchurl {
8     url = "http://www.andre-simon.de/zip/ansifilter-${version}.tar.bz2";
9     sha256 = "sha256-Zs8BfTakPV9q4gYJzjtYZHSU7mwOQfxoLFmL/859fTk=";
10   };
12   nativeBuildInputs = [ pkg-config ];
13   buildInputs = [ boost lua ];
15   postPatch = ''
16     substituteInPlace src/makefile --replace "CC=g++" "CC=c++"
17   '';
19   makeFlags = [
20     "PREFIX=${placeholder "out"}"
21     "conf_dir=/etc/ansifilter"
22   ];
24   meta = with lib; {
25     description = "Tool to convert ANSI to other formats";
26     longDescription = ''
27       Tool to remove ANSI or convert them to another format
28       (HTML, TeX, LaTeX, RTF, Pango or BBCode)
29     '';
30     homepage = "http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php";
31     license = licenses.gpl3;
32     maintainers = [ maintainers.Adjective-Object ];
33     platforms = platforms.linux ++ platforms.darwin;
34   };