add repeater

This commit is contained in:
gwg313 2026-05-03 16:50:22 -04:00
parent ffedb0d8b7
commit 189734ba0b
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
7 changed files with 63 additions and 1 deletions

48
pkgs/repeater/package.nix Normal file
View file

@ -0,0 +1,48 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
bzip2,
sqlite,
vulkan-loader,
zstd,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "repeater";
version = "0.1.9";
src = fetchFromGitHub {
owner = "shaankhosla";
repo = "repeater";
tag = "v${finalAttrs.version}";
hash = "sha256-vkiDJ9hGEa9PCaNjgGJAvAFGUxXJK04ezvXyAmJB3bk=";
};
cargoHash = "sha256-/ttQpk9JnSRhE/VOJlz60LpV1PJ/spzXQ1EPLcox1mw=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
bzip2
sqlite
vulkan-loader
zstd
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
meta = {
description = "Spaced repetition, in your terminal";
homepage = "https://github.com/shaankhosla/repeater";
changelog = "https://github.com/shaankhosla/repeater/blob/${finalAttrs.src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ ];
mainProgram = "repeater";
};
})