at 24.11-pre 1.1 kB view raw
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.10"; 20 21 src = fetchFromGitHub { 22 owner = "storaged-project"; 23 repo = "libbytesize"; 24 rev = finalAttrs.version; 25 hash = "sha256-IPBoYcnSQ1/ws3mzPUXxgbetZkXRWrGhtakXaVVFb6U="; 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 strictDeps = true; 48 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 mainProgram = "bscalc"; 53 license = lib.licenses.lgpl2Plus; 54 maintainers = with lib.maintainers; [ AndersonTorres ]; 55 platforms = lib.platforms.linux; 56 }; 57})