atuin: fix build on darwin
xvfb-run is not available on darwin
This commit is contained in:
parent
ce2f08f142
commit
f6f9829f50
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue