delta: add missing check input, skip test on darwin

This commit is contained in:
zowoq 2023-01-15 07:09:26 +10:00
parent 3a29a0b2aa
commit d0a7e8e018

View file

@ -7,6 +7,7 @@
, Foundation
, libiconv
, Security
, git
}:
rustPlatform.buildRustPackage rec {
@ -26,12 +27,18 @@ rustPlatform.buildRustPackage rec {
buildInputs = lib.optionals stdenv.isDarwin [ DiskArbitration Foundation libiconv Security ];
checkInputs = [ git ];
postInstall = ''
installShellCompletion --bash --name delta.bash etc/completion/completion.bash
installShellCompletion --zsh --name _delta etc/completion/completion.zsh
installShellCompletion --fish --name delta.fish etc/completion/completion.fish
'';
checkFlags = lib.optionals stdenv.isDarwin [
"--skip=test_diff_same_non_empty_file"
];
meta = with lib; {
homepage = "https://github.com/dandavison/delta";
description = "A syntax-highlighting pager for git";