Merge pull request #233523 from wineee/xmake

{xmake-core-sv,tbox,xmake}: init

authored by

Sandro and committed by
GitHub
a96eb6a3 f231f786

+131
+37
pkgs/development/libraries/tbox/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + }: 5 + 6 + stdenv.mkDerivation rec { 7 + pname = "tbox"; 8 + version = "1.7.3"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "tboox"; 12 + repo = pname; 13 + rev = "v${version}"; 14 + hash = "sha256-6SqMvwxKSiJO7Z33xx7cJoECu5AJ1gWF8ZsiERWx8DU="; 15 + }; 16 + 17 + configureFlags = [ 18 + "--hash=y" 19 + "--charset=y" 20 + "--float=y" 21 + "--demo=n" 22 + ]; 23 + 24 + postInstall = '' 25 + mkdir -p $out/lib/pkgconfig 26 + substituteAll ${./libtbox.pc.in} $out/lib/pkgconfig/libtbox.pc 27 + ''; 28 + 29 + meta = with lib; { 30 + description = "A glib-like multi-platform c library"; 31 + homepage = "https://docs.tboox.org"; 32 + license = licenses.asl20; 33 + platforms = platforms.linux; 34 + maintainers = with maintainers; [ rewine ]; 35 + }; 36 + } 37 +
+10
pkgs/development/libraries/tbox/libtbox.pc.in
··· 1 + prefix=@out@ 2 + exec_prefix=${prefix} 3 + libdir=@out@/lib 4 + includedir=@out@/include 5 + 6 + Name: tbox 7 + Description: A glib-like multi-platform c library 8 + Version: @version@ 9 + Libs: -L${libdir} -ltbox 10 + Cflags: -I${includedir}
+30
pkgs/development/libraries/xmake-core-sv/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + }: 6 + 7 + stdenv.mkDerivation rec { 8 + pname = "xmake-core-sv"; 9 + version = "1.1"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "xmake-io"; 13 + repo = pname; 14 + rev = "v${version}"; 15 + hash = "sha256-icvGQi6FNSZXNGs2oLiUKu6rrVsWcXh1r91kycGjnwY="; 16 + }; 17 + 18 + nativeBuildInputs = [ 19 + autoreconfHook 20 + ]; 21 + 22 + meta = with lib; { 23 + description = "Public domain cross-platform semantic versioning in c99"; 24 + homepage = "https://github.com/xmake-io/xmake-core-sv"; 25 + license = licenses.unlicense; 26 + platforms = platforms.linux; 27 + maintainers = with maintainers; [ rewine ]; 28 + }; 29 + } 30 +
+46
pkgs/development/tools/build-managers/xmake/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , pkg-config 5 + , lua 6 + , readline 7 + , ncurses 8 + , lz4 9 + , tbox 10 + , xmake-core-sv 11 + }: 12 + 13 + stdenv.mkDerivation rec { 14 + pname = "xmake"; 15 + version = "2.7.9"; 16 + 17 + src = fetchurl { 18 + url = "https://github.com/xmake-io/xmake/releases/download/v${version}/xmake-v${version}.tar.gz"; 19 + hash = "sha256-m0LYY0gz9IhbBbiUKd1gBE3KmSMvYJYyC42Ff7M9Ku8="; 20 + }; 21 + 22 + nativeBuildInputs = [ 23 + pkg-config 24 + ]; 25 + 26 + buildInputs = [ 27 + lua 28 + lua.pkgs.cjson 29 + readline 30 + ncurses 31 + lz4 32 + tbox 33 + xmake-core-sv 34 + ]; 35 + 36 + configureFlags = [ "--external=y" ]; 37 + 38 + meta = with lib; { 39 + description = "A cross-platform build utility based on Lua"; 40 + homepage = "https://xmake.io"; 41 + license = licenses.asl20; 42 + platforms = lua.meta.platforms; 43 + maintainers = with maintainers; [ rewine ]; 44 + }; 45 + } 46 +
+8
pkgs/top-level/all-packages.nix
··· 16766 16766 16767 16767 tinyscheme = callPackage ../development/interpreters/tinyscheme { }; 16768 16768 16769 + tbox = callPackage ../development/libraries/tbox { }; 16770 + 16769 16771 inherit (nodePackages) typescript; 16770 16772 16771 16773 bupc = callPackage ../development/compilers/bupc { }; ··· 19602 19604 watson-ruby = callPackage ../development/tools/misc/watson-ruby { }; 19603 19605 19604 19606 webdis = callPackage ../development/tools/database/webdis { }; 19607 + 19608 + xmake = callPackage ../development/tools/build-managers/xmake { 19609 + lua = lua5_4; 19610 + }; 19605 19611 19606 19612 xc3sprog = callPackage ../development/embedded/xc3sprog { stdenv = gcc10StdenvCompat; }; 19607 19613 ··· 24742 24748 xgboostWithCuda = xgboost.override { cudaSupport = true; }; 24743 24749 24744 24750 xgeometry-select = callPackage ../tools/X11/xgeometry-select { }; 24751 + 24752 + xmake-core-sv = callPackage ../development/libraries/xmake-core-sv { }; 24745 24753 24746 24754 xmlada = callPackage ../development/libraries/ada/xmlada { }; 24747 24755