33 lines
897 B
Nix
33 lines
897 B
Nix
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext
|
|
, gtk-doc, libxslt, docbook_xml_dtd_43, docbook_xsl
|
|
, python3, pcre2, gmp, mpfr
|
|
}:
|
|
|
|
let
|
|
version = "2.2";
|
|
in stdenv.mkDerivation rec {
|
|
pname = "libbytesize";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "storaged-project";
|
|
repo = "libbytesize";
|
|
rev = version;
|
|
sha256 = "0n4gmn68ypsk3gcw6akcghlgk3aj3wskwg3mlg93cw5y3a33nbhm";
|
|
};
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig gettext gtk-doc libxslt docbook_xml_dtd_43 docbook_xsl python3 ];
|
|
|
|
buildInputs = [ pcre2 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;
|
|
};
|
|
}
|