aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
blob: 878160238c5d9319d6e85e74f76ca79d42e8480a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  description = "Modules and packages to flash KOBO eReader firmware";

  inputs = {
    nixpkgs.url = github:nixos/nixpkgs;
    flake-utils.url = github:numtide/flake-utils;
  };

  outputs = inputs@{ self, nixpkgs, flake-utils, ... }: {
    lib = import ./lib { inherit (nixpkgs) lib; };


    overlays.default = import ./overlays;

  } // flake-utils.lib.eachDefaultSystem (system:
  let
    pkgs = import nixpkgs {
      inherit system;
      overlays = builtins.attrValues self.overlays;
    };
  in {

    koboConfigurations = rec {
      default = clara;
      clara = self.lib.koboConfiguration {
        inherit pkgs;
        modules = [ ./kobo/clara ];
      };
    };

    packages = {
      inherit (pkgs)
        kepubify
        kfmon
        kfwproxy
        kobo-koreader
        kobo-utils
        nickel-menu
        plato
      ;
    };

    devShells = {
      default = pkgs.mkShellNoCC {
        buildInputs = [
          pkgs.kobo-utils
        ];
      };
    };

  });
}