identity: run checks

This commit is contained in:
seth 2024-11-07 15:19:51 -05:00
parent 95f260494a
commit e0784fad5f
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -48,6 +48,7 @@ stdenv.mkDerivation rec {
ninja
pkg-config
rustc
rustPlatform.cargoCheckHook
rustPlatform.cargoSetupHook
wrapGAppsHook4
];
@ -66,6 +67,20 @@ stdenv.mkDerivation rec {
libseccomp
];
mesonBuildType = "release";
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
cargoCheckType = if (finalAttrs.mesonBuildType != "debug") then "release" else "debug";
checkPhase = ''
runHook preCheck
cargoCheckHook
mesonCheckPhase
runHook postCheck
'';
passthru.updateScript = nix-update-script { };
meta = {