broot icon indicating copy to clipboard operation
broot copied to clipboard

Compilation of `trash` feature fails on darwin

Open Schweber opened this issue 1 year ago • 7 comments

The compilation of broot on x86_64_darwin fails with

error[E0433]: failed to resolve: could not find `os_limited` in `trash`
   --> src/app/panel_state.rs:162:34
    |
162 |                 let res = trash::os_limited::list()
    |                                  ^^^^^^^^^^ could not find `os_limited` in `trash`
    |
note: found an item that was configured out
   --> /private/tmp/nix-build-broot-1.39.0.drv-0/broot-1.39.0-vendor.tar.gz/trash/src/lib.rs:350:9
    |
350 | pub mod os_limited {
    |         ^^^^^^^^^^
error[E0433]: failed to resolve: could not find `os_limited` in `trash`
   --> src/app/panel_state.rs:164:32
    |
164 |                         trash::os_limited::purge_all(items)
    |                                ^^^^^^^^^^ could not find `os_limited` in `trash`
    |
note: found an item that was configured out

In the readme of trash it says:

The library supports Windows, macOS, and all FreeDesktop Trash compliant environments (including GNOME, KDE, XFCE, and more).

Is there something that can be done about it? I would like to enable trash as the default build Feature in nixpkgs.

Schweber avatar Jun 07 '24 04:06 Schweber