Skip to content

Commit

Permalink
scarab: fix crash (#345038), don't bundle tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
huantianad committed Oct 3, 2024
1 parent 718581f commit 2edfaf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/tools/games/scarab/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ buildDotnetModule rec {
};

nugetDeps = ./deps.nix;
projectFile = "Scarab.sln";
projectFile = "Scarab/Scarab.csproj";
testProjectFile = "Scarab.Tests/Scarab.Tests.csproj";
executables = [ "Scarab" ];

preConfigureNuGet = ''
Expand All @@ -48,6 +49,8 @@ buildDotnetModule rec {
wrapGAppsHook3
];

doCheck = true;

postFixup = ''
# Icons for the desktop file
icotool -x $src/Scarab/Assets/omegamaggotprime.ico
Expand Down

0 comments on commit 2edfaf4

Please sign in to comment.