aboutsummaryrefslogtreecommitdiff
path: root/slides/flake.nix
blob: f96e412ed72d89287c1f5a178aa03083e79ce4eb (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
{
  description = "TeX paper";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs";
    flake-parts.url = "github:hercules-ci/flake-parts";
    latex-utils.url = "github:jmmaloney4/latex-utils";
    systems.url = "github:nix-systems/default";
  };

  outputs =
    inputs@{
      self,
      nixpkgs,
      flake-parts,
      latex-utils,
      ...
    }:
    flake-parts.lib.mkFlake { inherit self inputs; } {
      systems = import inputs.systems;

      imports = [ latex-utils.modules.flake.latex-utils ];

      latex-utils = {
        enableVSCode = false;
        documents = [
          {
            name = "slides.pdf";
            src = ./.;
            extraTexPackages = [ "beamer" ];
          }
        ];
      };

      perSystem =
        { config, pkgs, ... }:
        {

          devShells.default = pkgs.mkShellNoCC {
            inputsFrom = [ config.latex-utils.unifiedTexShell ];
            nativeBuildInputs = [ ];
          };

        };

    };
}