2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, which, libxslt, libxml2, docbook_xml_dtd_412, docbook_xsl, glib, imagemagick, darwin }:
|
2019-03-27 03:43:06 +00:00
|
|
|
|
|
|
|
|
2020-06-07 22:11:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-01-18 12:47:01 +00:00
|
|
|
version = "1.6.0";
|
2019-03-27 03:43:06 +00:00
|
|
|
pname = "chafa";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hpjansson";
|
|
|
|
repo = "chafa";
|
|
|
|
rev = version;
|
2021-01-18 12:47:01 +00:00
|
|
|
sha256 = "sha256-GaXVMM23U3M+qNJrWYR+DLiCmILcuX5EIkQqzwN/l1Y=";
|
2019-03-27 03:43:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
2021-01-17 03:51:22 +00:00
|
|
|
pkg-config
|
2019-03-27 03:43:06 +00:00
|
|
|
which
|
|
|
|
libxslt
|
|
|
|
libxml2
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
docbook_xsl
|
|
|
|
];
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildInputs = [ glib imagemagick ] ++ lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.ApplicationServices ];
|
2019-03-27 03:43:06 +00:00
|
|
|
|
|
|
|
patches = [ ./xmlcatalog_patch.patch ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--enable-man"
|
|
|
|
"--with-xml-catalog=${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Terminal graphics for the 21st century";
|
2020-03-04 02:00:13 +00:00
|
|
|
homepage = "https://hpjansson.org/chafa/";
|
2019-03-27 03:43:06 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.mog ];
|
|
|
|
};
|
|
|
|
}
|