From 8c475d567ef5d10f45e43c0fe8626cfb8e1dfdd0 Mon Sep 17 00:00:00 2001 From: kilianar Date: Thu, 30 Nov 2023 14:01:49 +0100 Subject: [PATCH] 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. --- pkgs/tools/misc/broot/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/misc/broot/default.nix b/pkgs/tools/misc/broot/default.nix index c12e93f94da3..91fc20857b90 100644 --- a/pkgs/tools/misc/broot/default.nix +++ b/pkgs/tools/misc/broot/default.nix @@ -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 = ''