From 8c47e12df1eace6a2a0adbf6b95448b7c70f91b0 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 6 Apr 2024 20:51:18 +0200 Subject: [PATCH] Fix plandex pkgs --- home/default.nix | 2 +- pkgs/plandex_cli.nix | 24 +++++++++++++++--------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/home/default.nix b/home/default.nix index da7d95c..ede8783 100644 --- a/home/default.nix +++ b/home/default.nix @@ -10,7 +10,7 @@ ./programs/direnv.nix ./programs/chromium.nix ./programs/flatpak.nix -# ./programs/plandex.nix + ./programs/plandex.nix ]; home = { diff --git a/pkgs/plandex_cli.nix b/pkgs/plandex_cli.nix index 6566d39..59eaaec 100644 --- a/pkgs/plandex_cli.nix +++ b/pkgs/plandex_cli.nix @@ -4,22 +4,28 @@ buildGoModule }: -buildGoModule { +buildGoModule rec { pname = "plandex-cli"; - version = "v0.8.1"; - vendorHash = lib.fakeHash; + version = "v0.8.2"; + + vendorHash = "sha256-+giOD3sB/SnyccFqoGnC2+DVR9u+MF+mqTFSoEEQqRw="; + src = fetchFromGitHub { - owner = "plandex-ai"; + owner = "mrdev023"; repo = "plandex"; - rev = "cli/v0.8.1"; - hash = "sha256-+1EETcqjvyi9W+y6nhcEFbc2bv2EjFEBxoxMrWPz7Ro="; + rev = "18da990f9cea059015b93e76420d14205a43a876"; + hash = "sha256-bHbPN8b3k4K2V5ul17U8O6RjBQdT3xT1I31Pe94Q52c="; }; - + modRoot = "app/cli"; - + + ldflags = [ + "-s -w -X github.com/${src.owner}/${src.repo}/app/cli/main.version.Version=${version}" + ]; + 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 +}