mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
tbox: init at 1.7.3
This commit is contained in:
parent
6f2cc0fc91
commit
f1b6469e48
37
pkgs/development/libraries/tbox/default.nix
Normal file
37
pkgs/development/libraries/tbox/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
10
pkgs/development/libraries/tbox/libtbox.pc.in
Normal file
10
pkgs/development/libraries/tbox/libtbox.pc.in
Normal 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}
|
@ -16616,6 +16616,8 @@ with pkgs;
|
||||
|
||||
tinyscheme = callPackage ../development/interpreters/tinyscheme { };
|
||||
|
||||
tbox = callPackage ../development/libraries/tbox { };
|
||||
|
||||
inherit (nodePackages) typescript;
|
||||
|
||||
bupc = callPackage ../development/compilers/bupc { };
|
||||
|
Loading…
Reference in New Issue
Block a user