task-master-ai: fix build on linux

Besides, it also adds the `versionCheckHook`.
This commit is contained in:
Thibault Gagnaux
2025-09-04 15:44:55 +02:00
parent 52c8b99170
commit ec75d729fa
@@ -4,6 +4,7 @@
fetchFromGitHub,
nodejs,
nix-update-script,
versionCheckHook,
}:
buildNpmPackage (finalAttrs: {
pname = "task-master-ai";
@@ -20,6 +21,8 @@ buildNpmPackage (finalAttrs: {
dontNpmBuild = true;
npmFlags = [ "--ignore-scripts" ];
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ nodejs ]}" ];
passthru.updateScript = nix-update-script { };
@@ -34,6 +37,11 @@ buildNpmPackage (finalAttrs: {
PUPPETEER_SKIP_DOWNLOAD = 1;
};
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/task-master";
versionCheckProgramArg = "--version";
meta = with lib; {
description = "Node.js agentic AI workflow orchestrator";
homepage = "https://task-master.dev";