diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2018-02-25 14:12:21 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2018-06-11 18:13:31 +0200 |
commit | 6d4069964f6c1db91fa674bdc0798dde065092db (patch) | |
tree | 1092643bb4dd2706139af0f73a0db233496a26d8 /pkgs/development/libraries/libbytesize/default.nix | |
parent | d1eb2550368046a1c2238c53cc0a06d416f039fc (diff) |
libbytesize: init at 1.3
Diffstat (limited to 'pkgs/development/libraries/libbytesize/default.nix')
-rw-r--r-- | pkgs/development/libraries/libbytesize/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libbytesize/default.nix b/pkgs/development/libraries/libbytesize/default.nix new file mode 100644 index 0000000000000..f1dcf60b3b942 --- /dev/null +++ b/pkgs/development/libraries/libbytesize/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gettext +, gtk-doc, libxslt, docbook_xml_dtd_43, docbook_xsl +, python3, pcre, gmp, mpfr +}: + +let + version = "1.3"; +in stdenv.mkDerivation rec { + name = "libbytesize-${version}"; + + src = fetchFromGitHub { + owner = "storaged-project"; + repo = "libbytesize"; + rev = version; + sha256 = "1ys5d8rya8x4q34gn1hr96z7797s9gdzah0y0d7g84x5x6k50p30"; + }; + + outputs = [ "out" "dev" "devdoc" ]; + + nativeBuildInputs = [ autoreconfHook pkgconfig gettext gtk-doc libxslt docbook_xml_dtd_43 docbook_xsl python3 ]; + + buildInputs = [ pcre 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; + }; +} |