From 9f2cc22d1c5ea0cc351a91efb014f308db39c2f8 Mon Sep 17 00:00:00 2001 From: Schweber <64630479+Schweber@users.noreply.github.com> Date: Thu, 6 Jun 2024 20:29:18 +0000 Subject: [PATCH] broot: add `trash` and `clipboard` as default Build Features for non-darwin https://github.com/Canop/broot/pull/882 --- pkgs/tools/misc/broot/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/broot/default.nix b/pkgs/tools/misc/broot/default.nix index c0a173c8058d..0a28eef63952 100644 --- a/pkgs/tools/misc/broot/default.nix +++ b/pkgs/tools/misc/broot/default.nix @@ -13,7 +13,8 @@ , xorg , zlib , buildPackages -, withClipboard ? false +, withClipboard ? !stdenv.isDarwin +, withTrash ? !stdenv.isDarwin }: rustPlatform.buildRustPackage rec { @@ -42,7 +43,7 @@ rustPlatform.buildRustPackage rec { zlib ]; - buildFeatures = lib.optionals withClipboard [ "clipboard" ]; + buildFeatures = lib.optionals withTrash [ "trash" ] ++ lib.optionals withClipboard [ "clipboard" ]; RUSTONIG_SYSTEM_LIBONIG = true;