1 { lib, stdenvNoCC, fetchFromGitHub, makeWrapper
2 , trash-cli, coreutils, which, getopt }:
4 stdenvNoCC.mkDerivation rec {
8 src = fetchFromGitHub {
12 sha256 = "0wfb2ykzlsxyqn9krfsis9jxhaxy3pxl71a4f15an1ngfndai694";
15 nativeBuildInputs = [ makeWrapper ];
18 for f in rm{,dir}trash; do
19 install -D ./$f $out/bin/$f
20 wrapProgram $out/bin/$f \
21 --prefix PATH : ${lib.makeBinPath [ trash-cli coreutils which getopt ]}
26 homepage = "https://github.com/PhrozenByte/rmtrash";
27 description = "trash-put made compatible with GNUs rm and rmdir";
29 Put files (and directories) in trash using the `trash-put` command in a
30 way that is, otherwise as `trash-put` itself, compatible to GNUs `rm`
33 license = licenses.gpl3Plus;
34 maintainers = with maintainers; [ peelz ];
35 platforms = platforms.all;