diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libbytesize/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libbytesize/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libbytesize/default.nix b/nixpkgs/pkgs/development/libraries/libbytesize/default.nix new file mode 100644 index 000000000000..a84f010b9e67 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libbytesize/default.nix @@ -0,0 +1,32 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gettext +, gtk-doc, libxslt, docbook_xml_dtd_43, docbook_xsl +, python3, pcre2, gmp, mpfr +}: + +let + version = "2.4"; +in stdenv.mkDerivation rec { + pname = "libbytesize"; + inherit version; + + src = fetchFromGitHub { + owner = "storaged-project"; + repo = "libbytesize"; + rev = version; + sha256 = "1kq0hnw2yxjdmcrwvgp0x4j1arkka23k8vp2l6nqcw9lc15x18fp"; + }; + + outputs = [ "out" "dev" "devdoc" ]; + + nativeBuildInputs = [ autoreconfHook pkg-config gettext gtk-doc libxslt docbook_xml_dtd_43 docbook_xsl python3 ]; + + buildInputs = [ pcre2 gmp mpfr ]; + + meta = with 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; + }; +} |