identity: use versionCheckHook

This commit is contained in:
seth
2024-11-07 15:52:50 -05:00
parent fbcf962708
commit 6952de9ce1
+4
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