2018-02-25 14:12:21 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext
|
|
|
|
, gtk-doc, libxslt, docbook_xml_dtd_43, docbook_xsl
|
2019-05-24 13:59:21 +02:00
|
|
|
, python3, pcre2, gmp, mpfr
|
2018-02-25 14:12:21 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2019-07-15 21:06:05 +02:00
|
|
|
version = "2.1";
|
2018-02-25 14:12:21 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "libbytesize";
|
|
|
|
inherit version;
|
2018-02-25 14:12:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "storaged-project";
|
|
|
|
repo = "libbytesize";
|
|
|
|
rev = version;
|
2019-07-15 21:06:05 +02:00
|
|
|
sha256 = "0qb6zx2fdghm21lishlcrhnwf4wwy5p69dsgp0504kn93ii7mw3m";
|
2018-02-25 14:12:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig gettext gtk-doc libxslt docbook_xml_dtd_43 docbook_xsl python3 ];
|
|
|
|
|
2019-05-24 13:59:21 +02:00
|
|
|
buildInputs = [ pcre2 gmp mpfr ];
|
2018-02-25 14:12:21 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A tiny library providing a C “class” for working with arbitrary big sizes in bytes";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = with maintainers; [];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|