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