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:
parent
cca5161289
commit
ba91ac5948
1 changed files with 16 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
@ -6,8 +6,22 @@ with lib;
|
||||||
config = {
|
config = {
|
||||||
programs.texlive.enable = true;
|
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 = ''
|
nmt.script = ''
|
||||||
assertFileExists home-path/bin/tex
|
assertFileExists home-path/collection-basic
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue