From 38d9c0b88f33b64d94b2fd36d4b7c24420363c8a Mon Sep 17 00:00:00 2001 From: ndowens Date: Tue, 28 Feb 2017 19:21:59 -0600 Subject: [PATCH] ansifilter: 1.15 -> 2.4 --- pkgs/tools/text/ansifilter/default.nix | 34 ++++++++++++++------------ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/pkgs/tools/text/ansifilter/default.nix b/pkgs/tools/text/ansifilter/default.nix index cf272f3bc81..921dbc22d41 100644 --- a/pkgs/tools/text/ansifilter/default.nix +++ b/pkgs/tools/text/ansifilter/default.nix @@ -1,28 +1,30 @@ { fetchurl, stdenv, pkgconfig, boost, lua }: -let version = "1.15"; - pkgsha = "65dc20cc1a03d4feba990f830186404c90462d599e5f4b37610d4d822d67aec4"; -in stdenv.mkDerivation { + +stdenv.mkDerivation rec { name = "ansifilter-${version}"; - buildInputs = [ - pkgconfig boost lua - ]; + version = "2.4"; + src = fetchurl { url = "http://www.andre-simon.de/zip/ansifilter-${version}.tar.bz2"; - sha256 = pkgsha; + sha256 = "c57cb878afa7191c7b7db3c086a344b4234df814aed632596619a4bda5941d48"; + }; - meta = { + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ boost lua ]; + + makeFlags = "PREFIX=$(out) conf_dir=/etc/ansifilter"; + + meta = with stdenv.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) + 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 ]; - platforms = stdenv.lib.platforms.linux; + license = licenses.gpl1; + maintainers = maintainers.Adjective-Object; + platforms = platforms.linux; }; - - makeFlags="PREFIX=$(out) conf_dir=$(out)/etc/ansifilter/"; - }