Merge pull request #121545 from veprbl/pr/tests.texlive.dvipng_recurseIntoAttrs

tests.texlive.dvipng: apply recurseIntoAttrs
This commit is contained in:
Dmitry Kalinkin 2021-05-04 14:09:04 -04:00 committed by GitHub
commit d91321927f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ runCommandNoCC, fetchurl, file, texlive, writeShellScript }:
{ lib, runCommandNoCC, fetchurl, file, texlive, writeShellScript }:
{
chktex = runCommandNoCC "texlive-test-chktex" {
@ -16,8 +16,9 @@
grep "One warning printed" "$out"
'';
dvipng = lib.recurseIntoAttrs {
# https://github.com/NixOS/nixpkgs/issues/75605
dvipng.basic = runCommandNoCC "texlive-test-dvipng-basic" {
basic = runCommandNoCC "texlive-test-dvipng-basic" {
nativeBuildInputs = [ file texlive.combined.scheme-medium ];
input = fetchurl {
name = "test_dvipng.tex";
@ -39,7 +40,7 @@
'';
# test dvipng's limited capability to render postscript specials via GS
dvipng.ghostscript = runCommandNoCC "texlive-test-ghostscript" {
ghostscript = runCommandNoCC "texlive-test-ghostscript" {
nativeBuildInputs = [ file (with texlive; combine { inherit scheme-small dvipng; }) ];
input = builtins.toFile "postscript-sample.tex" ''
\documentclass{minimal}
@ -77,7 +78,7 @@
mkdir "$out"
mv document*.png "$out"/
'';
};
# https://github.com/NixOS/nixpkgs/issues/75070
dvisvgm = runCommandNoCC "texlive-test-dvisvgm" {