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

  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, flake-parts, ... }:
    flake-parts.lib.mkFlake { inherit self inputs; } {
      systems = import inputs.systems;

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

      latex-utils = {
        enableVSCode = false;
        extraTexPackages = [ "scheme-full" ];
      };

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

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

        };
    };
}