windows: run cargo tests

escape-analysis
Sebastien Bourdeauducq 2022-03-23 09:53:45 +08:00
parent d92ce201d3
commit b10b49e39a
1 changed files with 4 additions and 1 deletions

View File

@ -78,7 +78,6 @@ in rec {
name = "nac3artiq";
src = ../.;
cargoLock = { lockFile = ../Cargo.lock; };
doCheck = false;
nativeBuildInputs = [ pkgs.wineWowPackages.stable pkgs.zip ];
buildPhase =
''
@ -96,6 +95,10 @@ in rec {
zip $out/nac3artiq.zip nac3artiq.pyd
echo file binary-dist $out/nac3artiq.zip >> $out/nix-support/hydra-build-products
'';
checkPhase =
''
wine64 cargo test --release
'';
dontFixup = true;
};
wine-msys2 = pkgs.writeShellScriptBin "wine-msys2"