nixpkgs/pkgs/development/libraries/libbytesize/default.nix

33 lines
896 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gettext
2018-02-25 13:12:21 +00:00
, gtk-doc, libxslt, docbook_xml_dtd_43, docbook_xsl
2019-05-24 11:59:21 +00:00
, python3, pcre2, gmp, mpfr
2018-02-25 13:12:21 +00:00
}:
let
2021-01-29 05:29:55 +00:00
version = "2.5";
2018-02-25 13:12:21 +00:00
in stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "libbytesize";
inherit version;
2018-02-25 13:12:21 +00:00
src = fetchFromGitHub {
owner = "storaged-project";
repo = "libbytesize";
rev = version;
2021-01-29 05:29:55 +00:00
sha256 = "sha256-F8Ur8gtNYp4PYfBQ9sDJGBgW7KohJYNEU9SI2SbNuvM=";
2018-02-25 13:12:21 +00:00
};
outputs = [ "out" "dev" "devdoc" ];
nativeBuildInputs = [ autoreconfHook pkg-config gettext gtk-doc libxslt docbook_xml_dtd_43 docbook_xsl python3 ];
2018-02-25 13:12:21 +00:00
2019-05-24 11:59:21 +00:00
buildInputs = [ pcre2 gmp mpfr ];
2018-02-25 13:12:21 +00:00
meta = with lib; {
2018-02-25 13:12:21 +00:00
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;
};
}