tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
chafa: init at 1.0.1
Matthew O'Gorman
6 years ago
f6d83c2e
5eb3edc8
+70
3 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
chafa
default.nix
xmlcatalog_patch.patch
top-level
all-packages.nix
+45
pkgs/tools/misc/chafa/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pkgconfig, which, libxslt, libxml2, docbook_xml_dtd_412, docbook_xsl, glib, imagemagick, darwin }:
2
2
+
3
3
+
4
4
+
stdenv.mkDerivation rec{
5
5
+
version = "1.0.1";
6
6
+
pname = "chafa";
7
7
+
8
8
+
src = fetchFromGitHub {
9
9
+
owner = "hpjansson";
10
10
+
repo = "chafa";
11
11
+
rev = version;
12
12
+
sha256 = "1i1cnzmb12pxldc7y4q1xdmybv9xkhzrjyhdvmk3qsn02p859q04";
13
13
+
};
14
14
+
15
15
+
nativeBuildInputs = [ autoconf
16
16
+
automake
17
17
+
libtool
18
18
+
pkgconfig
19
19
+
which
20
20
+
libxslt
21
21
+
libxml2
22
22
+
docbook_xml_dtd_412
23
23
+
docbook_xsl
24
24
+
];
25
25
+
26
26
+
buildInputs = [ glib imagemagick ] ++ stdenv.lib.optional stdenv.isDarwin [ darwin.apple_sdk.frameworks.ApplicationServices ];
27
27
+
28
28
+
patches = [ ./xmlcatalog_patch.patch ];
29
29
+
30
30
+
preConfigure = ''
31
31
+
./autogen.sh
32
32
+
'';
33
33
+
34
34
+
configureFlags = [ "--enable-man"
35
35
+
"--with-xml-catalog=${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml"
36
36
+
];
37
37
+
38
38
+
meta = with stdenv.lib; {
39
39
+
description = "Terminal graphics for the 21st century.";
40
40
+
homepage = https://hpjansson.org/chafa/;
41
41
+
license = licenses.lgpl3Plus;
42
42
+
platforms = platforms.all;
43
43
+
maintainers = [ maintainers.mog ];
44
44
+
};
45
45
+
}
+23
pkgs/tools/misc/chafa/xmlcatalog_patch.patch
···
1
1
+
diff --git a/configure.ac b/configure.ac
2
2
+
index 0055a70..fd4a905 100644
3
3
+
--- a/configure.ac
4
4
+
+++ b/configure.ac
5
5
+
@@ -111,18 +111,6 @@ AS_IF([ test "$enable_man" != no ], [
6
6
+
])
7
7
+
])
8
8
+
9
9
+
-AS_IF([test "$enable_man" != no], [
10
10
+
- dnl check for DocBook XSL stylesheets in the local catalog
11
11
+
- JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl],
12
12
+
- [DocBook XSL Stylesheets], [have_docbook_style=yes],[have_docbook_style=no])
13
13
+
- AS_IF([ test "$have_docbook_style" != yes ], [
14
14
+
- AS_IF([ test "$enable_man" = yes ], [
15
15
+
- AC_MSG_ERROR([DocBook XSL Stylesheets are required for --enable-man])
16
16
+
- ])
17
17
+
- enable_man=no
18
18
+
- ])
19
19
+
-])
20
20
+
-
21
21
+
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
22
22
+
23
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
2127
+
chafa = callPackage ../tools/misc/chafa { };
2128
2128
+
2127
2129
checkbashisms = callPackage ../development/tools/misc/checkbashisms { };
2128
2130
2129
2131
civetweb = callPackage ../development/libraries/civetweb { };