Merge pull request #317823 from Schweber/broot_Trash

broot: add `trash` and `clipboard` as default Build Features for non-darwin
This commit is contained in:
Nick Cao 2024-06-08 10:03:22 -04:00 committed by GitHub
commit 16f3fa44cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;