aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/programs/texlive/texlive-minimal.nix
blob: 1b13936beac5ee82eb7de097a186323e24293d7e (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
{ config, lib, pkgs, ... }:

with lib;

{
  config = {
    programs.texlive.enable = true;

    # Set up a minimal mocked texlive package set.
    nixpkgs.overlays = [
      (self: super: {
        texlive = {
          collection-basic = pkgs.writeTextDir "collection-basic" "";
          combine = tpkgs:
            pkgs.symlinkJoin {
              name = "dummy-texlive-combine";
              paths = attrValues tpkgs;
            };
        };
      })
    ];

    nmt.script = ''
      assertFileExists home-path/collection-basic
    '';
  };
}