Unverified Commit a7e73754 authored by Thomas Gerbet's avatar Thomas Gerbet Committed by GitHub
Browse files

Merge pull request #325485 from SFrijters/yara-x-completions

yara-x: only generate shell completions if possible
parents 5fcc5458 34df1dba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, cmake
@@ -22,7 +23,7 @@ rustPlatform.buildRustPackage rec {

  nativeBuildInputs = [ cmake installShellFiles ];

  postInstall = ''
  postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
    installShellCompletion --cmd yr \
      --bash <($out/bin/yr completion bash) \
      --fish <($out/bin/yr completion fish) \