task-master-ai: fix build on linux

Besides, it also adds the `versionCheckHook`.

+8
+8
pkgs/by-name/ta/task-master-ai/package.nix
··· 4 4 fetchFromGitHub, 5 5 nodejs, 6 6 nix-update-script, 7 + versionCheckHook, 7 8 }: 8 9 buildNpmPackage (finalAttrs: { 9 10 pname = "task-master-ai"; ··· 20 21 21 22 dontNpmBuild = true; 22 23 24 + npmFlags = [ "--ignore-scripts" ]; 25 + 23 26 makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ nodejs ]}" ]; 24 27 25 28 passthru.updateScript = nix-update-script { }; ··· 33 36 env = { 34 37 PUPPETEER_SKIP_DOWNLOAD = 1; 35 38 }; 39 + 40 + nativeInstallCheckInputs = [ versionCheckHook ]; 41 + doInstallCheck = true; 42 + versionCheckProgram = "${placeholder "out"}/bin/task-master"; 43 + versionCheckProgramArg = "--version"; 36 44 37 45 meta = with lib; { 38 46 description = "Node.js agentic AI workflow orchestrator";