refactor(nix): use versionCheckHook

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Thomas Mühlbacher 2025-09-25 00:17:32 +00:00 committed by Kent Overstreet
parent 9eb3e6c076
commit 32faba26b8

View File

@ -5,6 +5,7 @@
# build time
pkg-config,
rustPlatform,
versionCheckHook,
# run time
fuse3,
@ -80,13 +81,8 @@ let
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
test "$($out/bin/bcachefs version)" = "${version}"
runHook postInstallCheck
'';
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
meta = {
description = "Userspace tools for bcachefs";