2023-04-12 02:15:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, docbook_xsl
|
|
|
|
, gettext
|
|
|
|
, gmp
|
|
|
|
, gtk-doc
|
|
|
|
, libxslt
|
|
|
|
, mpfr
|
|
|
|
, pcre2
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2018-02-25 13:12:21 +00:00
|
|
|
}:
|
|
|
|
|
2023-04-21 14:44:19 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "libbytesize";
|
2023-04-12 02:15:19 +00:00
|
|
|
version = "2.8";
|
2018-02-25 13:12:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "storaged-project";
|
|
|
|
repo = "libbytesize";
|
2023-04-21 14:44:19 +00:00
|
|
|
rev = finalAttrs.version;
|
2023-04-12 02:15:19 +00:00
|
|
|
hash = "sha256-/TVv/srhbotIkne0G77hgBF4j+74INqVUr8zlKsaoM0=";
|
2018-02-25 13:12:21 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 02:15:19 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" "man" ];
|
2018-02-25 13:12:21 +00:00
|
|
|
|
2023-04-12 02:15:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xsl
|
|
|
|
gettext
|
|
|
|
gtk-doc
|
|
|
|
libxslt
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
];
|
2018-02-25 13:12:21 +00:00
|
|
|
|
2023-04-12 02:15:19 +00:00
|
|
|
buildInputs = [
|
|
|
|
gmp
|
|
|
|
mpfr
|
|
|
|
pcre2
|
|
|
|
];
|
2018-02-25 13:12:21 +00:00
|
|
|
|
2023-04-12 02:15:19 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/storaged-project/libbytesize";
|
|
|
|
description = "A tiny library providing a C 'class' for working with arbitrary big sizes in bytes";
|
|
|
|
license = lib.licenses.lgpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
platforms = lib.platforms.linux;
|
2018-02-25 13:12:21 +00:00
|
|
|
};
|
2023-04-12 02:15:19 +00:00
|
|
|
})
|