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.
This commit is contained in:
huantian
2024-10-02 21:56:44 -07:00
parent 718581f55b
commit 2edfaf4d64

View File

@@ -23,7 +23,8 @@ buildDotnetModule rec {
}; };
nugetDeps = ./deps.nix; nugetDeps = ./deps.nix;
projectFile = "Scarab.sln"; projectFile = "Scarab/Scarab.csproj";
testProjectFile = "Scarab.Tests/Scarab.Tests.csproj";
executables = [ "Scarab" ]; executables = [ "Scarab" ];
preConfigureNuGet = '' preConfigureNuGet = ''
@@ -48,6 +49,8 @@ buildDotnetModule rec {
wrapGAppsHook3 wrapGAppsHook3
]; ];
doCheck = true;
postFixup = '' postFixup = ''
# Icons for the desktop file # Icons for the desktop file
icotool -x $src/Scarab/Assets/omegamaggotprime.ico icotool -x $src/Scarab/Assets/omegamaggotprime.ico