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

33 lines
899 B
Nix
Raw Normal View History

{ 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 12:59:21 +01:00
, python3, pcre2, gmp, mpfr
2018-02-25 13:12:21 +00:00
}:
let
2020-08-02 06:08:43 +01:00
version = "2.4";
2018-02-25 13:12:21 +00:00
in stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "libbytesize";
inherit version;
2018-02-25 13:12:21 +00:00
src = fetchFromGitHub {
owner = "storaged-project";
repo = "libbytesize";
rev = version;
2020-08-02 06:08:43 +01:00
sha256 = "1kq0hnw2yxjdmcrwvgp0x4j1arkka23k8vp2l6nqcw9lc15x18fp";
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 12:59:21 +01:00
buildInputs = [ pcre2 gmp mpfr ];
2018-02-25 13:12:21 +00: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;
};
}