Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libbytesize / default.nix
blob6604bb3222948f4657c39c7ec9d2f3513e10f47b
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 , docbook_xml_dtd_43
6 , docbook_xsl
7 , gettext
8 , gmp
9 , gtk-doc
10 , libxslt
11 , mpfr
12 , pcre2
13 , pkg-config
14 , python3
17 stdenv.mkDerivation (finalAttrs: {
18   pname = "libbytesize";
19   version = "2.10";
21   src = fetchFromGitHub {
22     owner = "storaged-project";
23     repo = "libbytesize";
24     rev = finalAttrs.version;
25     hash = "sha256-IPBoYcnSQ1/ws3mzPUXxgbetZkXRWrGhtakXaVVFb6U=";
26   };
28   outputs = [ "out" "dev" "devdoc" "man" ];
30   nativeBuildInputs = [
31     autoreconfHook
32     docbook_xml_dtd_43
33     docbook_xsl
34     gettext
35     gtk-doc
36     libxslt
37     pkg-config
38     python3
39   ];
41   buildInputs = [
42     gmp
43     mpfr
44     pcre2
45   ];
47   strictDeps = true;
49   meta = {
50     homepage = "https://github.com/storaged-project/libbytesize";
51     description = "A tiny library providing a C 'class' for working with arbitrary big sizes in bytes";
52     license = lib.licenses.lgpl2Plus;
53     maintainers = with lib.maintainers; [ AndersonTorres ];
54     platforms = lib.platforms.linux;
55   };