diff options
author | Stanisław Pitucha | 2024-07-28 12:20:33 +1000 |
---|---|---|
committer | Stanisław Pitucha | 2024-07-28 12:23:30 +1000 |
commit | 081d6924b1b3c91942e73d531eea5852cd8c6bb3 (patch) | |
tree | 3f1e1a9f33a35fc1f61b150a4a61c048432507d0 /pkgs/by-name/pl | |
parent | 7bc9b3b5040e03eaa70080c42f1795fbc0483781 (diff) |
plandex-server: init at 1.1.1
Diffstat (limited to 'pkgs/by-name/pl')
-rw-r--r-- | pkgs/by-name/pl/plandex-server/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/pl/plandex-server/package.nix b/pkgs/by-name/pl/plandex-server/package.nix new file mode 100644 index 000000000000..a1d0c846eb58 --- /dev/null +++ b/pkgs/by-name/pl/plandex-server/package.nix @@ -0,0 +1,40 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + 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 + ''; + + 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 ]; + }; +} |