2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, lua
|
|
|
|
, readline
|
|
|
|
, ncurses
|
|
|
|
, lz4
|
|
|
|
, tbox
|
|
|
|
, xmake-core-sv
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xmake";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.8.5";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/xmake-io/xmake/releases/download/v${version}/xmake-v${version}.tar.gz";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-GcZ747z8valsqHoY7/rDm/zMRD+7N1THu8AVEd7NJK8=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
lua
|
|
|
|
lua.pkgs.cjson
|
|
|
|
readline
|
|
|
|
ncurses
|
|
|
|
lz4
|
|
|
|
tbox
|
|
|
|
xmake-core-sv
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
configureFlags = [ "--external=y" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A cross-platform build utility based on Lua";
|
|
|
|
homepage = "https://xmake.io";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = lua.meta.platforms;
|
|
|
|
maintainers = with maintainers; [ rewine ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|