mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
tests.texlive: remove with statements
This commit is contained in:
parent
2cf5e918df
commit
abcb8ef242
1 changed files with 5 additions and 5 deletions
|
@ -190,7 +190,7 @@ rec {
|
||||||
|
|
||||||
texdoc = runCommand "texlive-test-texdoc" {
|
texdoc = runCommand "texlive-test-texdoc" {
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
(texlive.withPackages (ps: with ps; [ luatex ps.texdoc ps.texdoc.texdoc ]))
|
(texlive.withPackages (ps: [ ps.luatex ps.texdoc ps.texdoc.texdoc ]))
|
||||||
];
|
];
|
||||||
} ''
|
} ''
|
||||||
texdoc --version
|
texdoc --version
|
||||||
|
@ -668,14 +668,14 @@ rec {
|
||||||
# verify that all fixed hashes are present
|
# verify that all fixed hashes are present
|
||||||
# this is effectively an eval-time assertion, converted into a derivation for
|
# this is effectively an eval-time assertion, converted into a derivation for
|
||||||
# ease of testing
|
# ease of testing
|
||||||
fixedHashes = with lib; let
|
fixedHashes = let
|
||||||
fods = lib.concatMap
|
fods = lib.concatMap
|
||||||
(p: lib.optional (p ? tex && isDerivation p.tex) p.tex
|
(p: lib.optional (p ? tex && lib.isDerivation p.tex) p.tex
|
||||||
++ lib.optional (p ? texdoc) p.texdoc
|
++ lib.optional (p ? texdoc) p.texdoc
|
||||||
++ lib.optional (p ? texsource) p.texsource
|
++ lib.optional (p ? texsource) p.texsource
|
||||||
++ lib.optional (p ? tlpkg) p.tlpkg)
|
++ lib.optional (p ? tlpkg) p.tlpkg)
|
||||||
(attrValues texlive.pkgs);
|
(lib.attrValues texlive.pkgs);
|
||||||
errorText = concatMapStrings (p: optionalString (! p ? outputHash) "${p.pname}-${p.tlOutputName} does not have a fixed output hash\n") fods;
|
errorText = lib.concatMapStrings (p: lib.optionalString (! p ? outputHash) "${p.pname}-${p.tlOutputName} does not have a fixed output hash\n") fods;
|
||||||
in runCommand "texlive-test-fixed-hashes" {
|
in runCommand "texlive-test-fixed-hashes" {
|
||||||
inherit errorText;
|
inherit errorText;
|
||||||
passAsFile = [ "errorText" ];
|
passAsFile = [ "errorText" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue