1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

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

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