texlive: remove upstream dependency in tests

This changes the tests to not require downloading the texlive
distribution.
This commit is contained in:
Robert Helgesson 2020-06-06 16:37:27 +02:00
parent cca5161289
commit ba91ac5948
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
with lib;
@ -6,8 +6,22 @@ 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/bin/tex
assertFileExists home-path/collection-basic
'';
};
}