add repeater
This commit is contained in:
parent
ffedb0d8b7
commit
189734ba0b
7 changed files with 63 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,2 @@
|
|||
.stfolder/
|
||||
.stfolder
|
||||
.stversions/
|
||||
|
|
|
|||
0
.stfolder
Normal file
0
.stfolder
Normal file
|
|
@ -45,6 +45,8 @@
|
|||
"x86_64-darwin"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
|
||||
flake.overlays.default = import ./overlays;
|
||||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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
3
overlays/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
final: prev: {
|
||||
repeater = prev.callPackage ../pkgs/repeater/package.nix { };
|
||||
}
|
||||
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