mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-12 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
|
# build time
|
||||||
pkg-config,
|
pkg-config,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
|
versionCheckHook,
|
||||||
|
|
||||||
# run time
|
# run time
|
||||||
fuse3,
|
fuse3,
|
||||||
@ -80,13 +81,8 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckPhase = ''
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
runHook preInstallCheck
|
versionCheckProgramArg = "version";
|
||||||
|
|
||||||
test "$($out/bin/bcachefs version)" = "${version}"
|
|
||||||
|
|
||||||
runHook postInstallCheck
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Userspace tools for bcachefs";
|
description = "Userspace tools for bcachefs";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user