tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
tmc-cli: fix tests with Darwin sandbox
Michael Daniels
6 months ago
59dd4574
18916ed2
+13
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
tm
tmc-cli
package.nix
+13
pkgs/by-name/tm/tmc-cli/package.nix
···
1
1
{
2
2
lib,
3
3
+
stdenv,
3
4
fetchFromGitHub,
4
5
rustPlatform,
5
6
writableTmpDirAsHomeHook,
···
23
24
writableTmpDirAsHomeHook
24
25
];
25
26
27
27
+
checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
28
28
+
# When sandboxing, "Attempted to create a NULL object."
29
29
+
# https://github.com/mullvad/system-configuration-rs/pull/59 may fix.
30
30
+
"--skip=commands::courses::tests::list_courses_with_client_test"
31
31
+
# Same
32
32
+
"--skip=all_integration_tests"
33
33
+
# When sandboxing, "Lazy instance has previously been poisoned."
34
34
+
"--skip=commands::exercises::tests::list_exercises_with_client_test"
35
35
+
];
36
36
+
26
37
nativeInstallCheckInputs = [
27
38
versionCheckHook
28
39
];
29
40
doInstallCheck = true;
30
41
versionCheckProgram = "${placeholder "out"}/bin/${finalAttrs.meta.mainProgram}";
31
42
versionCheckProgramArg = "--version";
43
43
+
44
44
+
__darwinAllowLocalNetworking = true;
32
45
33
46
meta = {
34
47
description = "CLI for using the TestMyCode programming assignment evaluator";