mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 15:09:46 +01:00
ba91ac5948
This changes the tests to not require downloading the texlive distribution.
27 lines
552 B
Nix
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
|
|
'';
|
|
};
|
|
}
|