Merge pull request #205850 from figsoda/fd

fd: skip flaky test, add figsoda as a maintainer
This commit is contained in:
figsoda 2022-12-14 11:35:41 -05:00 committed by GitHub
commit ae9cbca2a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, rustPlatform, installShellFiles }: { lib, rustPlatform, fetchFromGitHub, installShellFiles }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "fd"; pname = "fd";
@ -15,10 +15,17 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
preFixup = '' # skip flaky test
checkFlags = [
"--skip=test_owner_current_group"
];
postInstall = ''
installManPage doc/fd.1 installManPage doc/fd.1
installShellCompletion $releaseDir/build/fd-find-*/out/fd.{bash,fish} installShellCompletion --cmd fd \
--bash <($out/bin/fd --gen-completions bash) \
--fish <($out/bin/fd --gen-completions fish)
installShellCompletion --zsh contrib/completion/_fd installShellCompletion --zsh contrib/completion/_fd
''; '';
@ -31,7 +38,8 @@ rustPlatform.buildRustPackage rec {
it provides sensible (opinionated) defaults for 80% of the use cases. it provides sensible (opinionated) defaults for 80% of the use cases.
''; '';
homepage = "https://github.com/sharkdp/fd"; homepage = "https://github.com/sharkdp/fd";
changelog = "https://github.com/sharkdp/fd/blob/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ]; license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ dywedir globin ma27 zowoq ]; maintainers = with maintainers; [ dywedir figsoda globin ma27 zowoq ];
}; };
} }