Add anki-connect plugin.

main
Joshua Potter 2024-01-30 11:47:36 -07:00
parent 7c5fcc5a88
commit 65904ad5d6
1 changed files with 24 additions and 9 deletions

View File

@ -1,5 +1,7 @@
{ pkgs, ... }:
let
addons = id: "Anki2/addons21/${toString id}";
FlexibleGrading = pkgs.fetchFromGitHub {
owner = "jrpotter";
repo = "FlexibleGrading";
@ -8,6 +10,14 @@ let
fetchSubmodules = true;
};
anki-connect = pkgs.fetchFromGitea {
domain = "git.foosoft.net";
owner = "alex";
repo = "anki-connect";
rev = "2996476e03a86ea56fd8148e9a434d6f65af890a";
hash = "sha256-5kwOZ6BLZqslBeOcX96GwLv3ME2J3czfw8oHG+ZgIQI=";
};
image-occlusion-enhanced = pkgs.fetchFromGitHub {
owner = "glutanimate";
repo = "image-occlusion-enhanced";
@ -37,16 +47,21 @@ let
};
in
{
xdg.dataFile."Anki2/addons21/1715096333" = {
source = FlexibleGrading;
recursive = true; # Let's addon write to directory.
xdg.dataFile = {
"${addons 1715096333}" = {
source = FlexibleGrading;
recursive = true; # Let's addon write to directory.
};
"${addons 2055492159}".source =
"${anki-connect}/plugin";
"${addons 1374772155}".source =
"${image-occlusion-enhanced}/src/image_occlusion_enhanced";
"${addons 566351439}".source =
syntax-highlighting-ng;
};
xdg.dataFile."Anki2/addons21/1374772155".source =
"${image-occlusion-enhanced}/src/image_occlusion_enhanced";
xdg.dataFile."Anki2/addons21/566351439".source =
syntax-highlighting-ng;
home.packages = [ pkgs.anki-bin ];
}