From 72bb5fec7484b20aaa4787dbea794ca22f2586ad Mon Sep 17 00:00:00 2001 From: figsoda Date: Mon, 12 Dec 2022 18:00:39 -0500 Subject: [PATCH] fd: skip flaky test, add figsoda as a maintainer --- pkgs/tools/misc/fd/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/fd/default.nix b/pkgs/tools/misc/fd/default.nix index c15ccc03d258..18169a794384 100644 --- a/pkgs/tools/misc/fd/default.nix +++ b/pkgs/tools/misc/fd/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, rustPlatform, installShellFiles }: +{ lib, rustPlatform, fetchFromGitHub, installShellFiles }: rustPlatform.buildRustPackage rec { pname = "fd"; @@ -15,10 +15,17 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = [ installShellFiles ]; - preFixup = '' + # skip flaky test + checkFlags = [ + "--skip=test_owner_current_group" + ]; + + postInstall = '' 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 ''; @@ -31,7 +38,8 @@ rustPlatform.buildRustPackage rec { it provides sensible (opinionated) defaults for 80% of the use cases. ''; homepage = "https://github.com/sharkdp/fd"; + changelog = "https://github.com/sharkdp/fd/blob/v${version}/CHANGELOG.md"; license = with licenses; [ asl20 /* or */ mit ]; - maintainers = with maintainers; [ dywedir globin ma27 zowoq ]; + maintainers = with maintainers; [ dywedir figsoda globin ma27 zowoq ]; }; }