mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
49 lines
820 B
Nix
49 lines
820 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, pkg-config
|
|
, lua
|
|
, readline
|
|
, ncurses
|
|
, lz4
|
|
, tbox
|
|
, xmake-core-sv
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "xmake";
|
|
version = "2.9.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/xmake-io/xmake/releases/download/v${version}/xmake-v${version}.tar.gz";
|
|
hash = "sha256-H2F7akVox+s+irDzpnwWmJJFrcVH46fR/YYayzCPtbI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|