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:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user