Skip to content

Commit 2edfaf4

Browse files
committed
scarab: fix crash (#345038), don't bundle tests
By using testProjectFile, we can properly build the test and run it in checkPhase, as well as not include the test in the derivation output. This also happens to fix the startup crash as described in #345038.
1 parent 718581f commit 2edfaf4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/tools/games/scarab/default.nix

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ buildDotnetModule rec {
2323
};
2424

2525
nugetDeps = ./deps.nix;
26-
projectFile = "Scarab.sln";
26+
projectFile = "Scarab/Scarab.csproj";
27+
testProjectFile = "Scarab.Tests/Scarab.Tests.csproj";
2728
executables = [ "Scarab" ];
2829

2930
preConfigureNuGet = ''
@@ -48,6 +49,8 @@ buildDotnetModule rec {
4849
wrapGAppsHook3
4950
];
5051

52+
doCheck = true;
53+
5154
postFixup = ''
5255
# Icons for the desktop file
5356
icotool -x $src/Scarab/Assets/omegamaggotprime.ico

0 commit comments

Comments
 (0)