1{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext
2, gtk-doc, libxslt, docbook_xml_dtd_43, docbook_xsl
3, python3, pcre, gmp, mpfr
4}:
5
6let
7 version = "1.4";
8in stdenv.mkDerivation rec {
9 name = "libbytesize-${version}";
10
11 src = fetchFromGitHub {
12 owner = "storaged-project";
13 repo = "libbytesize";
14 rev = version;
15 sha256 = "1yxlc0f960rhqmh3fs3p0hvw0y2cikplgc27zsz6rn4h5dlrfmi2";
16 };
17
18 outputs = [ "out" "dev" "devdoc" ];
19
20 nativeBuildInputs = [ autoreconfHook pkgconfig gettext gtk-doc libxslt docbook_xml_dtd_43 docbook_xsl python3 ];
21
22 buildInputs = [ pcre gmp mpfr ];
23
24 meta = with stdenv.lib; {
25 description = "A tiny library providing a C “class” for working with arbitrary big sizes in bytes";
26 homepage = src.meta.homepage;
27 license = licenses.lgpl2Plus;
28 maintainers = with maintainers; [];
29 platforms = platforms.linux;
30 };
31}