9 rustPlatform.buildRustPackage rec {
14 inherit pname version;
15 hash = "sha256-1xHyhAV8hpgMngQdamRzEliyG60t+I3KfsDJi0+180o=";
18 cargoHash = "sha256-ZWqWtWzb+CLH1ravBb/oV+aPxplEyiC1wEFhvchcLqg=";
20 nativeBuildInputs = [ installShellFiles ];
22 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
23 installShellCompletion --cmd trash \
24 --bash <($out/bin/trash completions bash) \
25 --fish <($out/bin/trash completions fish) \
26 --zsh <($out/bin/trash completions zsh) \
30 description = "Simple, fast, and featureful alternative to rm and trash-cli";
31 homepage = "https://github.com/oberblastmeister/trashy";
32 changelog = "https://github.com/oberblastmeister/trashy/blob/v${version}/CHANGELOG.md";
33 license = with licenses; [
37 maintainers = with maintainers; [ oberblastmeister ];
38 mainProgram = "trash";
39 # darwin is unsupported due to https://github.com/Byron/trash-rs/issues/8
40 platforms = platforms.linux;