about summary refs log tree commit diff
path: root/pkgs/by-name/pl
diff options
context:
space:
mode:
authorAleksana2024-08-03 22:48:42 +0800
committerGitHub2024-08-03 22:48:42 +0800
commitf2d6dbc8848777b3e4666831cfdec6f84c36311d (patch)
treea2d0f2fb3ac74b30de9583bae8763d6b14ce79e2 /pkgs/by-name/pl
parentcfd25f7c6a1ec9974441dc8490f468bdbfb26ce4 (diff)
parent081d6924b1b3c91942e73d531eea5852cd8c6bb3 (diff)
Merge pull request #328865 from viraptor/plandex-init
plandex,plandex-server: init at 1.1.1
Diffstat (limited to 'pkgs/by-name/pl')
-rw-r--r--pkgs/by-name/pl/plandex-server/package.nix40
-rw-r--r--pkgs/by-name/pl/plandex/package.nix28
2 files changed, 68 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 ];
+  };
+}
diff --git a/pkgs/by-name/pl/plandex/package.nix b/pkgs/by-name/pl/plandex/package.nix
new file mode 100644
index 000000000000..e0652aa8470f
--- /dev/null
+++ b/pkgs/by-name/pl/plandex/package.nix
@@ -0,0 +1,28 @@
+{
+  lib,
+  buildGoModule,
+  fetchFromGitHub,
+}:
+buildGoModule rec {
+  pname = "plandex";
+  version = "1.1.1";
+
+  src = fetchFromGitHub {
+    owner = "plandex-ai";
+    repo = "plandex";
+    rev = "cli/v${version}";
+    hash = "sha256-q3DBkYmZxgrdlEUdGgFCf5IR17lKmYp7U5BD/4GXxjo=";
+  };
+
+  sourceRoot = "${src.name}/app/cli";
+
+  vendorHash = "sha256-aFfgXGRnsqS7Ik5geQ6yXL+8X0BfNhHGzF7GKIDC4iE=";
+
+  meta = {
+    mainProgram = "plandex";
+    description = "AI driven development in your terminal. Designed for large, real-world tasks. The sli part";
+    homepage = "https://plandex.ai/";
+    license = lib.licenses.agpl3Only;
+    maintainers = with lib.maintainers; [ viraptor ];
+  };
+}