herdr: init at 0.7.0 (#518310)

This commit is contained in:
Adam C. Stephens
2026-06-19 17:15:35 +00:00
committed by GitHub
2 changed files with 64 additions and 0 deletions
+6
View File
@@ -14237,6 +14237,12 @@
githubId = 8211181;
name = "Kevin Kandlbinder";
};
kevinpita = {
email = "gitkevin@pm.me";
github = "kevinpita";
githubId = 69063372;
name = "Kevin Pita";
};
keyruu = {
name = "Lucas";
email = "me@keyruu.de";
+58
View File
@@ -0,0 +1,58 @@
{
lib,
rustPlatform,
fetchFromGitHub,
zig_0_15,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "herdr";
version = "0.7.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ogulcancelik";
repo = "herdr";
tag = "v${finalAttrs.version}";
hash = "sha256-DjCSwhRMBRE9lSvjpX6m8IpoEgUbOP1jcmeXMlQlSQY=";
};
cargoHash = "sha256-NHVSdXlGsqhI/Mij28TvdW0f6IKOglNgpBNb2sFXocI=";
zigDeps = zig_0_15.fetchDeps {
inherit (finalAttrs) pname version;
src = "${finalAttrs.src}/vendor/libghostty-vt";
fetchAll = true;
hash = "sha256-pgGu8+NwvFcj6SrN4VaTHLeHdA7QY731ctyrHZwgFAc=";
};
nativeBuildInputs = [ zig_0_15.hook ];
# Upstream binary tests are renamed, added, or changed between releases and
# depend on host process details, so Nix-only patches for them are brittle.
doCheck = false;
dontUseZigBuild = true;
dontUseZigCheck = true;
dontUseZigInstall = true;
postConfigure = ''
export ZIG_GLOBAL_CACHE_DIR=$(mktemp -d)
cp -rL ${finalAttrs.zigDeps} "$ZIG_GLOBAL_CACHE_DIR/p"
chmod -R u+w "$ZIG_GLOBAL_CACHE_DIR/p"
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Agent multiplexer that lives in your terminal";
homepage = "https://github.com/ogulcancelik/herdr";
changelog = "https://github.com/ogulcancelik/herdr/releases/tag/v${finalAttrs.version}";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ kevinpita ];
mainProgram = "herdr";
platforms = lib.platforms.unix;
};
})