diff --git a/home/default.nix b/home/default.nix index 3d23e60..da7d95c 100644 --- a/home/default.nix +++ b/home/default.nix @@ -10,6 +10,7 @@ ./programs/direnv.nix ./programs/chromium.nix ./programs/flatpak.nix +# ./programs/plandex.nix ]; home = { diff --git a/home/programs/plandex.nix b/home/programs/plandex.nix new file mode 100644 index 0000000..9c05ac4 --- /dev/null +++ b/home/programs/plandex.nix @@ -0,0 +1,7 @@ +{ config, pkgs, ... }: +let + plandex_cli = pkgs.callPackage ../../pkgs/plandex_cli.nix { }; +in +{ + home.packages = [plandex_cli]; +} diff --git a/pkgs/plandex_cli.nix b/pkgs/plandex_cli.nix new file mode 100644 index 0000000..6566d39 --- /dev/null +++ b/pkgs/plandex_cli.nix @@ -0,0 +1,25 @@ +{ + lib, + fetchFromGitHub, + buildGoModule +}: + +buildGoModule { + pname = "plandex-cli"; + version = "v0.8.1"; + vendorHash = lib.fakeHash; + src = fetchFromGitHub { + owner = "plandex-ai"; + repo = "plandex"; + rev = "cli/v0.8.1"; + hash = "sha256-+1EETcqjvyi9W+y6nhcEFbc2bv2EjFEBxoxMrWPz7Ro="; + }; + + modRoot = "app/cli"; + + meta = with lib; { + description = "An AI coding engine for complex tasks"; + homepage = "https://github.com/plandex-ai/plandex"; + license = licenses.agpl3Only; + }; +} \ No newline at end of file