diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libbytesize/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libbytesize/default.nix | 60 |
1 files changed, 41 insertions, 19 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libbytesize/default.nix b/nixpkgs/pkgs/development/libraries/libbytesize/default.nix index eda85e286b4c..52a3d3112f22 100644 --- a/nixpkgs/pkgs/development/libraries/libbytesize/default.nix +++ b/nixpkgs/pkgs/development/libraries/libbytesize/default.nix @@ -1,32 +1,54 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, gettext -, gtk-doc, libxslt, docbook_xml_dtd_43, docbook_xsl -, python3, pcre2, gmp, mpfr +{ lib +, stdenv +, fetchFromGitHub +, autoreconfHook +, docbook_xml_dtd_43 +, docbook_xsl +, gettext +, gmp +, gtk-doc +, libxslt +, mpfr +, pcre2 +, pkg-config +, python3 }: -let - version = "2.6"; -in stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "libbytesize"; - inherit version; + version = "2.8"; src = fetchFromGitHub { owner = "storaged-project"; repo = "libbytesize"; - rev = version; - sha256 = "sha256-akZFd7rUjBQ/yj79NHWTNUro3wKu81F0Y1GX8gMdJ5Y="; + rev = finalAttrs.version; + hash = "sha256-/TVv/srhbotIkne0G77hgBF4j+74INqVUr8zlKsaoM0="; }; - outputs = [ "out" "dev" "devdoc" ]; + outputs = [ "out" "dev" "devdoc" "man" ]; - nativeBuildInputs = [ autoreconfHook pkg-config gettext gtk-doc libxslt docbook_xml_dtd_43 docbook_xsl python3 ]; + nativeBuildInputs = [ + autoreconfHook + docbook_xml_dtd_43 + docbook_xsl + gettext + gtk-doc + libxslt + pkg-config + python3 + ]; - buildInputs = [ pcre2 gmp mpfr ]; + buildInputs = [ + gmp + mpfr + pcre2 + ]; - 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; + 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; }; -} +}) |