mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{
|
|
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;
|
|
};
|
|
})
|