1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-18 17:19:45 +01:00
home-manager/tests/modules/programs/texlive/texlive-minimal.nix
Robert Helgesson ba91ac5948
texlive: remove upstream dependency in tests
This changes the tests to not require downloading the texlive
distribution.
2020-06-06 16:43:17 +02:00

27 lines
552 B
Nix

{ 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
'';
};
}