mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-08 00:00:12 +03:00
refactor(nix): use versionCheckHook
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
9eb3e6c076
commit
32faba26b8
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user