2018-02-25 13:12:21 +00:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext
|
|
|
|
, gtk-doc, libxslt, docbook_xml_dtd_43, docbook_xsl
|
|
|
|
, python3, pcre, gmp, mpfr
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2018-08-09 10:45:47 +01:00
|
|
|
version = "1.4";
|
2018-02-25 13:12:21 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "libbytesize-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "storaged-project";
|
|
|
|
repo = "libbytesize";
|
|
|
|
rev = version;
|
2018-08-09 10:45:47 +01:00
|
|
|
sha256 = "1yxlc0f960rhqmh3fs3p0hvw0y2cikplgc27zsz6rn4h5dlrfmi2";
|
2018-02-25 13:12:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig gettext gtk-doc libxslt docbook_xml_dtd_43 docbook_xsl python3 ];
|
|
|
|
|
|
|
|
buildInputs = [ pcre gmp mpfr ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|