2023-02-08 13:41:14 +00:00
|
|
|
{
|
|
|
|
description = "scan2paperless flake";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
devshell.url = "github:numtide/devshell";
|
|
|
|
devshell.inputs.nixpkgs.follows = "nixpkgs";
|
2023-02-08 15:25:10 +00:00
|
|
|
|
|
|
|
deno2nix.url = "git+https://git.pub.solar/b12f/deno2.nix.git";
|
2023-02-08 13:41:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
2023-02-08 15:25:10 +00:00
|
|
|
nixpkgs,
|
2023-02-08 13:41:14 +00:00
|
|
|
flake-utils,
|
|
|
|
devshell,
|
2023-02-08 15:25:10 +00:00
|
|
|
deno2nix,
|
2023-02-08 13:41:14 +00:00
|
|
|
}:
|
|
|
|
flake-utils.lib.simpleFlake {
|
|
|
|
inherit self nixpkgs;
|
|
|
|
|
|
|
|
name = "scan2paperless";
|
|
|
|
|
|
|
|
preOverlays = [
|
2023-06-11 19:54:17 +00:00
|
|
|
devshell.overlays.default
|
2023-02-08 13:41:14 +00:00
|
|
|
deno2nix.overlays.default
|
|
|
|
];
|
|
|
|
|
|
|
|
overlay = ./overlay.nix;
|
|
|
|
|
|
|
|
shell = { pkgs }: pkgs.devshell.mkShell {
|
|
|
|
imports = [ ];
|
|
|
|
|
|
|
|
# Add additional packages you'd like to be available in your devshell
|
|
|
|
# PATH here
|
|
|
|
devshell.packages = with pkgs; [
|
|
|
|
deno
|
|
|
|
sane-backends
|
2023-06-11 19:54:17 +00:00
|
|
|
python310Packages.img2pdf
|
2023-02-08 13:41:14 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
bash.extra = ''
|
|
|
|
export NVIM_USE_DENOLS=1
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|