scan2paperless/overlay.nix

31 lines
613 B
Nix
Raw Normal View History

2023-02-08 13:41:14 +00:00
final: prev:
{
scan2paperless = {
scan2paperless = final.deno2nix.mkExecutable {
pname = "scan2paperless";
version = "0.1.0";
src = ./.;
bin = "scan2paperless";
entrypoint = "./src/main.ts";
lockfile = "./deno.lock";
config = "./deno.json";
2023-02-08 15:26:09 +00:00
buildInputs = with prev; [
2023-02-08 15:25:10 +00:00
sane-backends
python39Packages.img2pdf
];
2023-02-08 16:32:05 +00:00
additionalDenoFlags = "--allow-write --allow-env --allow-run";
# TODO: Find out why allow does not work here
2023-02-08 13:41:14 +00:00
allow = {
2023-02-08 16:32:05 +00:00
write = true;
env = true;
run = true;
2023-02-08 13:41:14 +00:00
};
};
};
}