Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.5 KiB
Nix
55 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
nodejs,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
buildNpmPackage (finalAttrs: {
|
|
pname = "task-master-ai";
|
|
version = "0.25.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eyaltoledano";
|
|
repo = "claude-task-master";
|
|
tag = "task-master-ai@${finalAttrs.version}";
|
|
hash = "sha256-7Vs8k8/ym2K+FzX3fAke344S9gEhjPCnzz1z+OlounE=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-6dPIZtbTmLVrJgaSAZE7pT1+xbKVkBS+UF8xfy/micc=";
|
|
|
|
dontNpmBuild = true;
|
|
|
|
npmFlags = [ "--ignore-scripts" ];
|
|
|
|
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ nodejs ]}" ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/node_modules/task-master-ai/apps
|
|
cp -r apps/extension $out/lib/node_modules/task-master-ai/apps/extension
|
|
cp -r apps/docs $out/lib/node_modules/task-master-ai/apps/docs
|
|
'';
|
|
|
|
env = {
|
|
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";
|
|
changelog = "https://github.com/eyaltoledano/claude-task-master/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
mainProgram = "task-master-ai";
|
|
maintainers = [ maintainers.repparw ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|