broot: add trash and clipboard as default Build Features for non-darwin

https://github.com/Canop/broot/pull/882
This commit is contained in:
Schweber 2024-06-06 20:29:18 +00:00
parent 272d7433da
commit 9f2cc22d1c

View File

@ -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;