broot: optional support for clipboard feature

This commit introduces support for the clipboard feature flag in broot,
allowing users to copy paths to the system clipboard. Enabling this
feature is done by setting withClipboard = true. However, as per the
upstream documentation, enabling this option may cause compilation
issues on certain platforms, which is why it remains disabled by
default.
This commit is contained in:
kilianar 2023-11-30 14:01:49 +01:00
parent c808d957d0
commit 8c475d567e

View File

@ -12,6 +12,7 @@
, xorg
, zlib
, buildPackages
, withClipboard ? false
}:
rustPlatform.buildRustPackage rec {
@ -39,6 +40,8 @@ rustPlatform.buildRustPackage rec {
zlib
];
buildFeatures = lib.optionals withClipboard [ "clipboard" ];
RUSTONIG_SYSTEM_LIBONIG = true;
postPatch = ''