mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
texlive: remove upstream dependency in tests
This changes the tests to not require downloading the texlive distribution.
This commit is contained in:
parent
cca5161289
commit
ba91ac5948
1 changed files with 16 additions and 2 deletions
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue