atuin: fix build on darwin

xvfb-run is not available on darwin
This commit is contained in:
figsoda 2023-03-03 16:37:59 -05:00 committed by Yt
parent ce2f08f142
commit f6f9829f50

View file

@ -34,11 +34,11 @@ rustPlatform.buildRustPackage rec {
--zsh <($out/bin/atuin gen-completions -s zsh)
'';
nativeCheckInputs = [
nativeCheckInputs = lib.optionals xvfb-run.meta.available [
xvfb-run
];
checkPhase = ''
checkPhase = lib.optionalString xvfb-run.meta.available ''
runHook preCheck
xvfb-run cargo test
runHook postCheck