programs: Add paperwork
This commit is contained in:
parent
11ec0ab428
commit
8771faa93c
|
@ -23,6 +23,31 @@ let
|
||||||
--model-dir ${waifu2x-photo-models} \
|
--model-dir ${waifu2x-photo-models} \
|
||||||
$@
|
$@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# making paperwork only depend on the tesseract language models I need (< 40
|
||||||
|
# MiB) than all models (1 GiB) is hard
|
||||||
|
paperwork =
|
||||||
|
let
|
||||||
|
paperwork-backend = (pkgs.python3Packages.paperwork-backend.override {
|
||||||
|
pyocr = pkgs.python3Packages.pyocr.override {
|
||||||
|
tesseract = pkgs.tesseract.override {
|
||||||
|
enableLanguages = [ "deu" "eng" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}).overrideAttrs (o: o // {
|
||||||
|
# !!! HACK test test_guess_orientation fails and I found no easy way to
|
||||||
|
# disable it
|
||||||
|
setuptoolsCheckPhase = "echo disabled";
|
||||||
|
});
|
||||||
|
in
|
||||||
|
pkgs.paperwork.override {
|
||||||
|
python3Packages = pkgs.python3Packages // {
|
||||||
|
inherit paperwork-backend;
|
||||||
|
paperwork-shell = pkgs.python3Packages.paperwork-shell.override {
|
||||||
|
inherit paperwork-backend;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
@ -201,6 +226,7 @@ in
|
||||||
|
|
||||||
# office
|
# office
|
||||||
jameica # application framework (used for hibiscus online banking)
|
jameica # application framework (used for hibiscus online banking)
|
||||||
|
paperwork # document management system
|
||||||
pdfarranger # pdf multitool
|
pdfarranger # pdf multitool
|
||||||
textidote # LaTeX document linter
|
textidote # LaTeX document linter
|
||||||
] ++ lib.optionals (nixosConfig.sbruder.gui.enable && !nixosConfig.sbruder.full) [
|
] ++ lib.optionals (nixosConfig.sbruder.gui.enable && !nixosConfig.sbruder.full) [
|
||||||
|
|
Loading…
Reference in a new issue