identity: use versionCheckHook

This commit is contained in:
seth 2024-11-07 15:47:34 -05:00
parent fbcf962708
commit 6952de9ce1
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -20,6 +20,7 @@
pkg-config,
rustPlatform,
rustc,
versionCheckHook,
wrapGAppsHook4,
}:
@ -77,6 +78,9 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
cargoCheckType = if (finalAttrs.mesonBuildType != "debug") then "release" else "debug";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
checkPhase = ''
runHook preCheck