38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ fetchurl, lib, stdenv, pkg-config, boost, lua }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ansifilter";
|
|
version = "2.19";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.andre-simon.de/zip/ansifilter-${version}.tar.bz2";
|
|
hash = "sha256-+cJ7GIORShsdSWX0xJsr5QLiqfyd0/YRI6vq6YnDVLw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ boost lua ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/makefile --replace "CC=g++" "CC=c++"
|
|
# avoid timestamp non-determinism with '-n'
|
|
substituteInPlace makefile --replace 'gzip -9f' 'gzip -9nf'
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|