2025-07-18 05:04:32 +00:00

41 lines
888 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xmake";
version = "3.0.1";
src = fetchFromGitHub {
owner = "xmake-io";
repo = "xmake";
tag = "v${finalAttrs.version}";
hash = "sha256-PlSNeC5h2C+cQMHqN1dD6prfZIenZXEHa1nWD2SgMIU=";
fetchSubmodules = true;
};
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru = {
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/xmake-io/xmake/releases/tag/v${finalAttrs.version}";
description = "Cross-platform build utility based on Lua";
homepage = "https://xmake.io";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
rewine
rennsax
];
mainProgram = "xmake";
};
})