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

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
.stfolder/
.stfolder
.stversions/

0
.stfolder Normal file
View file

View file

@ -45,6 +45,8 @@
"x86_64-darwin"
"aarch64-darwin"
];
flake.overlays.default = import ./overlays;
perSystem =
{ pkgs, ... }:
{

View file

@ -7,6 +7,9 @@
pkgs,
...
}:
# let
# repeater = pkgs.callPackage ../../../../pkgs/repeater.nix { };
# in
{
home.packages = with pkgs; [
@ -15,6 +18,7 @@
nurl
nix-init
nixpkgs-review
repeater
];
}
)

View file

@ -95,6 +95,11 @@ let
};
modules = [
{
nixpkgs.overlays = [
inputs.self.overlays.default
];
}
../inventory/current.nix
../inventory/features.nix
../inventory/hosts.nix

3
overlays/default.nix Normal file
View file

@ -0,0 +1,3 @@
final: prev: {
repeater = prev.callPackage ../pkgs/repeater/package.nix { };
}

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";
};
})