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
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
git,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "plandex-server";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "plandex-ai";
|
|
repo = "plandex";
|
|
rev = "server/v${version}";
|
|
hash = "sha256-RVvgnQtb/asOjVpSZ3WndimsJ6foERMWS/YD20sghVE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace db/db.go \
|
|
--replace-fail "file://migrations" "file://$out/migrations"
|
|
'';
|
|
|
|
postInstall = ''
|
|
cp -r migrations $out/migrations
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/plandex-server \
|
|
--prefix PATH : ${lib.makeBinPath [ git ]}
|
|
'';
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
sourceRoot = "${src.name}/app/server";
|
|
|
|
vendorHash = "sha256-uarTWteOoAjzEHSnbZo+fEPELerpuL7UNA5pdGP5CMY=";
|
|
|
|
meta = {
|
|
mainProgram = "plandex-server";
|
|
description = "AI driven development in your terminal. Designed for large, real-world tasks. The server part";
|
|
homepage = "https://plandex.ai/";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ viraptor ];
|
|
};
|
|
}
|