Add anki-connect plugin.
parent
7c5fcc5a88
commit
65904ad5d6
|
@ -1,5 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
let
|
||||||
|
addons = id: "Anki2/addons21/${toString id}";
|
||||||
|
|
||||||
FlexibleGrading = pkgs.fetchFromGitHub {
|
FlexibleGrading = pkgs.fetchFromGitHub {
|
||||||
owner = "jrpotter";
|
owner = "jrpotter";
|
||||||
repo = "FlexibleGrading";
|
repo = "FlexibleGrading";
|
||||||
|
@ -8,6 +10,14 @@ let
|
||||||
fetchSubmodules = true;
|
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 {
|
image-occlusion-enhanced = pkgs.fetchFromGitHub {
|
||||||
owner = "glutanimate";
|
owner = "glutanimate";
|
||||||
repo = "image-occlusion-enhanced";
|
repo = "image-occlusion-enhanced";
|
||||||
|
@ -37,16 +47,21 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.dataFile."Anki2/addons21/1715096333" = {
|
xdg.dataFile = {
|
||||||
source = FlexibleGrading;
|
"${addons 1715096333}" = {
|
||||||
recursive = true; # Let's addon write to directory.
|
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 ];
|
home.packages = [ pkgs.anki-bin ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue