Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 15}: 16 17stdenv.mkDerivation (finalAttrs: { 18 pname = "libbytesize"; 19 version = "2.8"; 20 21 src = fetchFromGitHub { 22 owner = "storaged-project"; 23 repo = "libbytesize"; 24 rev = finalAttrs.version; 25 hash = "sha256-/TVv/srhbotIkne0G77hgBF4j+74INqVUr8zlKsaoM0="; 26 }; 27 28 outputs = [ "out" "dev" "devdoc" "man" ]; 29 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 ]; 40 41 buildInputs = [ 42 gmp 43 mpfr 44 pcre2 45 ]; 46 47 meta = { 48 homepage = "https://github.com/storaged-project/libbytesize"; 49 description = "A tiny library providing a C 'class' for working with arbitrary big sizes in bytes"; 50 license = lib.licenses.lgpl2Plus; 51 maintainers = with lib.maintainers; [ AndersonTorres ]; 52 platforms = lib.platforms.linux; 53 }; 54})