From 98a319b7c7e98a9bbf9cd02018a879e450fbfe04 Mon Sep 17 00:00:00 2001 From: Bryan Lai Date: Mon, 1 Jan 2024 16:27:55 +0800 Subject: [PATCH] tectonic: add passthru.tests.workspace Also, replace `builtins.toFile` with `pkgs.writeText` because the former blocks the evaluation loop just like an import from derivation (IFD). Although it is _technically_ not an IFD, it has very similar effects, and thus we should prefer the nixpkgs `pkgs.writeText` instead. --- pkgs/tools/typesetting/tectonic/tests.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/typesetting/tectonic/tests.nix b/pkgs/tools/typesetting/tectonic/tests.nix index 0ecf47bf1977..da1961c8e42d 100644 --- a/pkgs/tools/typesetting/tectonic/tests.nix +++ b/pkgs/tools/typesetting/tectonic/tests.nix @@ -3,6 +3,7 @@ { lib , fetchFromGitHub +, writeText , runCommand , tectonic , curl @@ -26,7 +27,7 @@ let }; testfiles = "${biber-dev-source}/testfiles"; - noNetNotice = builtins.toFile "tectonic-offline-notice" '' + noNetNotice = writeText "tectonic-offline-notice" '' # To fetch tectonic's web bundle, the tests require internet access, # which is not available in the current environment. ''; @@ -84,4 +85,9 @@ lib.mapAttrs networkRequiringTestPkg { export HOME=$PWD tectonic -X compile ./test.tex ''; + + workspace = '' + tectonic -X new + cat Tectonic.toml | grep "${tectonic.bundleUrl}" + ''; }