tbox: init at 1.7.3

This commit is contained in:
rewine 2023-05-23 09:59:30 +08:00
parent 6f2cc0fc91
commit f1b6469e48
No known key found for this signature in database
GPG Key ID: AABB329787290824
3 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "tbox";
version = "1.7.3";
src = fetchFromGitHub {
owner = "tboox";
repo = pname;
rev = "v${version}";
hash = "sha256-6SqMvwxKSiJO7Z33xx7cJoECu5AJ1gWF8ZsiERWx8DU=";
};
configureFlags = [
"--hash=y"
"--charset=y"
"--float=y"
"--demo=n"
];
postInstall = ''
mkdir -p $out/lib/pkgconfig
substituteAll ${./libtbox.pc.in} $out/lib/pkgconfig/libtbox.pc
'';
meta = with lib; {
description = "A glib-like multi-platform c library";
homepage = "https://docs.tboox.org";
license = licenses.asl20;
platforms = platforms.linux;
maintainers = with maintainers; [ rewine ];
};
}

View File

@ -0,0 +1,10 @@
prefix=@out@
exec_prefix=${prefix}
libdir=@out@/lib
includedir=@out@/include
Name: tbox
Description: A glib-like multi-platform c library
Version: @version@
Libs: -L${libdir} -ltbox
Cflags: -I${includedir}

View File

@ -16616,6 +16616,8 @@ with pkgs;
tinyscheme = callPackage ../development/interpreters/tinyscheme { };
tbox = callPackage ../development/libraries/tbox { };
inherit (nodePackages) typescript;
bupc = callPackage ../development/compilers/bupc { };