nixpkgs/pkgs/tools/misc/chafa/default.nix

49 lines
1.3 KiB
Nix
Raw Normal View History

2021-05-12 22:41:50 +02:00
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config, which
, libxslt, libxml2, docbook_xml_dtd_412, docbook_xsl, glib, imagemagick
, Foundation
}:
2019-03-27 04:43:06 +01:00
stdenv.mkDerivation rec {
2021-09-06 04:42:52 +02:00
version = "1.8.0";
2019-03-27 04:43:06 +01:00
pname = "chafa";
src = fetchFromGitHub {
owner = "hpjansson";
repo = "chafa";
rev = version;
2021-09-06 04:42:52 +02:00
sha256 = "sha256-8ENPmcl0KVxoBu8FGOGk+y8XsONWW0YW32MHAKBUiPE=";
2019-03-27 04:43:06 +01:00
};
nativeBuildInputs = [ autoconf
automake
libtool
2021-01-17 04:51:22 +01:00
pkg-config
2019-03-27 04:43:06 +01:00
which
libxslt
libxml2
docbook_xml_dtd_412
docbook_xsl
];
2021-05-12 22:41:50 +02:00
buildInputs = [ glib imagemagick ]
++ lib.optional stdenv.isDarwin Foundation;
2019-03-27 04:43:06 +01:00
patches = [ ./xmlcatalog_patch.patch ];
preConfigure = ''
./autogen.sh
'';
configureFlags = [ "--enable-man"
"--with-xml-catalog=${docbook_xml_dtd_412}/xml/dtd/docbook/catalog.xml"
];
meta = with lib; {
description = "Terminal graphics for the 21st century";
2020-03-04 03:00:13 +01:00
homepage = "https://hpjansson.org/chafa/";
2019-03-27 04:43:06 +01:00
license = licenses.lgpl3Plus;
platforms = platforms.all;
maintainers = [ maintainers.mog ];
};
}