Test getPDF Text
This commit is contained in:
36
flake.nix
36
flake.nix
@@ -13,6 +13,27 @@
|
||||
let
|
||||
inherit (poetry2nix.legacyPackages.${system}) mkPoetryApplication mkPoetryEnv mkPoetryPackages defaultPoetryOverrides;
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
overrides = defaultPoetryOverrides.extend
|
||||
(self: super: {
|
||||
nextcord = super.nextcord.overridePythonAttrs
|
||||
(
|
||||
old: {
|
||||
propagatedBuildInputs = (
|
||||
old.propagatedBuildInputs or []
|
||||
) ++ [super.setuptools];
|
||||
}
|
||||
);
|
||||
pdftotext = super.pdftotext.overridePythonAttrs
|
||||
(
|
||||
old: {
|
||||
buildInputs = (
|
||||
old.buildInputs or []
|
||||
) ++ (with pkgs; [
|
||||
poppler
|
||||
]);
|
||||
}
|
||||
);
|
||||
});
|
||||
in rec {
|
||||
|
||||
hydraJobs = pkgs.lib.optionalAttrs
|
||||
@@ -49,17 +70,7 @@ DOC
|
||||
projectDir = self;
|
||||
# TODO: Upload to poetry2nix
|
||||
# https://github.com/nix-community/poetry2nix/blob/master/docs/edgecases.md
|
||||
overrides = defaultPoetryOverrides.extend
|
||||
(self: super: {
|
||||
nextcord = super.nextcord.overridePythonAttrs
|
||||
(
|
||||
old: {
|
||||
propagatedBuildInputs = (
|
||||
old.propagatedBuildInputs or []
|
||||
) ++ [super.setuptools];
|
||||
}
|
||||
);
|
||||
});
|
||||
inherit overrides;
|
||||
};
|
||||
default = self.packages.${system}.handyhelper;
|
||||
};
|
||||
@@ -70,8 +81,11 @@ DOC
|
||||
poetry2nix.packages.${system}.poetry
|
||||
(mkPoetryEnv {
|
||||
projectDir = self;
|
||||
inherit overrides;
|
||||
})
|
||||
sops
|
||||
# For pdftotext
|
||||
poppler
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user