Skip to content

Commit e54da63

Browse files
committed
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.
1 parent aa7613a commit e54da63

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkgs/tools/typesetting/tectonic/tests.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
{ lib
55
, fetchFromGitHub
6+
, writeText
67
, runCommand
78
, tectonic
89
, curl
@@ -26,7 +27,7 @@ let
2627
};
2728
testfiles = "${biber-dev-source}/testfiles";
2829

29-
noNetNotice = builtins.toFile "tectonic-offline-notice" ''
30+
noNetNotice = writeText "tectonic-offline-notice" ''
3031
# To fetch tectonic's web bundle, the tests require internet access,
3132
# which is not available in the current environment.
3233
'';
@@ -84,4 +85,9 @@ lib.mapAttrs networkRequiringTestPkg {
8485
export HOME=$PWD
8586
tectonic -X compile ./test.tex
8687
'';
88+
89+
workspace = ''
90+
tectonic -X new
91+
cat Tectonic.toml | grep "${tectonic.bundle.url}"
92+
'';
8793
}

0 commit comments

Comments
 (0)