feat: add sidecar and td packages, fix neovim extraLuaConfig
All checks were successful
Update Nix Packages with nix-update / nix-update (push) Successful in 4m18s
All checks were successful
Update Nix Packages with nix-update / nix-update (push) Successful in 4m18s
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
# Custom packages registry
|
||||
# Each package is defined in its own directory under pkgs/
|
||||
beads = pkgs.callPackage ./beads {};
|
||||
sidecar = pkgs.callPackage ./sidecar {};
|
||||
td = pkgs.callPackage ./td {};
|
||||
code2prompt = pkgs.callPackage ./code2prompt {};
|
||||
hyprpaper-random = pkgs.callPackage ./hyprpaper-random {};
|
||||
launch-webapp = pkgs.callPackage ./launch-webapp {};
|
||||
|
||||
66
pkgs/sidecar/default.nix
Normal file
66
pkgs/sidecar/default.nix
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
gitMinimal,
|
||||
makeWrapper, # Add this
|
||||
nix-update-script,
|
||||
td, # Add this - the td package
|
||||
versionCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "sidecar";
|
||||
version = "0.71.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "marcus";
|
||||
repo = "sidecar";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-/tCdhU5Q6ejSSFZCeep6BFWpvAgjyC2KPcDaX0ls8eI=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-R/AjNJ4x4t1zXXzT+21cjY+9pxs4DVXU4xs88BQvHx4=";
|
||||
|
||||
subPackages = ["cmd/sidecar"];
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.Version=v${finalAttrs.version}" # Can combine these
|
||||
];
|
||||
|
||||
nativeBuildInputs = [makeWrapper]; # Add this
|
||||
|
||||
nativeCheckInputs = [
|
||||
gitMinimal
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
nativeInstallCheckInputs = [
|
||||
versionCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
versionCheckProgramArg = "--version";
|
||||
doInstallCheck = true;
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/sidecar \
|
||||
--prefix PATH : ${lib.makeBinPath [td]}
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script {};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Use sidecar next to CLI agents for diffs, file trees, conversation history, and task management with td";
|
||||
homepage = "https://github.com/marcus/sidecar";
|
||||
changelog = "https://github.com/marcus/sidecar/releases/tag/v${finalAttrs.version}";
|
||||
license = lib.licenses.mit;
|
||||
mainProgram = "sidecar";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
})
|
||||
47
pkgs/td/default.nix
Normal file
47
pkgs/td/default.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
gitMinimal,
|
||||
nix-update-script,
|
||||
versionCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "td";
|
||||
version = "0.33.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "marcus";
|
||||
repo = "td";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-gci4B83x/0UMawy+fncArF9zO1aHRE/zXj91e5h6yi8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-Rp0lhnBLJx+exX7VLql3RfthTVk3LLftD6n6SsSWzVY=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X"
|
||||
"main.Version=v${finalAttrs.version}"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [gitMinimal writableTmpDirAsHomeHook];
|
||||
|
||||
nativeInstallCheckInputs = [versionCheckHook writableTmpDirAsHomeHook];
|
||||
versionCheckProgramArg = "version";
|
||||
doInstallCheck = true;
|
||||
|
||||
doCheck = false;
|
||||
|
||||
passthru.updateScript = nix-update-script {};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Minimalist CLI for tracking tasks across AI coding sessions";
|
||||
homepage = "https://github.com/marcus/td";
|
||||
license = licenses.mit;
|
||||
mainProgram = "td";
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user