chafa: init at 1.0.1

+70
+45
pkgs/tools/misc/chafa/default.nix
··· 1 + { stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, which, libxslt, libxml2, docbook_xml_dtd_412, docbook_xsl, glib, imagemagick, darwin }: 2 + 3 + 4 + stdenv.mkDerivation rec{ 5 + version = "1.0.1"; 6 + pname = "chafa"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "hpjansson"; 10 + repo = "chafa"; 11 + rev = version; 12 + sha256 = "1i1cnzmb12pxldc7y4q1xdmybv9xkhzrjyhdvmk3qsn02p859q04"; 13 + }; 14 + 15 + nativeBuildInputs = [ autoconf 16 + automake 17 + libtool 18 + pkgconfig 19 + which 20 + libxslt 21 + libxml2 22 + docbook_xml_dtd_412 23 + docbook_xsl 24 + ]; 25 + 26 + buildInputs = [ glib imagemagick ] ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.ApplicationServices ]; 27 + 28 + patches = [ ./xmlcatalog_patch.patch ]; 29 + 30 + preConfigure = '' 31 + ./autogen.sh 32 + ''; 33 + 34 + configureFlags = [ "--enable-man" 35 + "--with-xml-catalog=${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml" 36 + ]; 37 + 38 + meta = with stdenv.lib; { 39 + description = "Terminal graphics for the 21st century."; 40 + homepage = https://hpjansson.org/chafa/; 41 + license = licenses.lgpl3Plus; 42 + platforms = platforms.all; 43 + maintainers = [ maintainers.mog ]; 44 + }; 45 + }
+23
pkgs/tools/misc/chafa/xmlcatalog_patch.patch
··· 1 + diff --git a/configure.ac b/configure.ac 2 + index 0055a70..fd4a905 100644 3 + --- a/configure.ac 4 + +++ b/configure.ac 5 + @@ -111,18 +111,6 @@ AS_IF([ test "$enable_man" != no ], [ 6 + ]) 7 + ]) 8 + 9 + -AS_IF([test "$enable_man" != no], [ 10 + - dnl check for DocBook XSL stylesheets in the local catalog 11 + - JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl], 12 + - [DocBook XSL Stylesheets], [have_docbook_style=yes],[have_docbook_style=no]) 13 + - AS_IF([ test "$have_docbook_style" != yes ], [ 14 + - AS_IF([ test "$enable_man" = yes ], [ 15 + - AC_MSG_ERROR([DocBook XSL Stylesheets are required for --enable-man]) 16 + - ]) 17 + - enable_man=no 18 + - ]) 19 + -]) 20 + - 21 + AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no) 22 + 23 + AC_MSG_CHECKING([whether to generate man pages])
+2
pkgs/top-level/all-packages.nix
··· 2124 2124 2125 2125 cfssl = callPackage ../tools/security/cfssl { }; 2126 2126 2127 + chafa = callPackage ../tools/misc/chafa { }; 2128 + 2127 2129 checkbashisms = callPackage ../development/tools/misc/checkbashisms { }; 2128 2130 2129 2131 civetweb = callPackage ../development/libraries/civetweb { };