add repeater
This commit is contained in:
parent
ffedb0d8b7
commit
189734ba0b
7 changed files with 63 additions and 1 deletions
48
pkgs/repeater/package.nix
Normal file
48
pkgs/repeater/package.nix
Normal 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";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue