lol
at 22.05-pre 37 lines 1.1 kB view raw
1{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper 2, trash-cli, coreutils, which, getopt }: 3 4stdenvNoCC.mkDerivation rec { 5 pname = "rmtrash"; 6 version = "1.14"; 7 8 src = fetchFromGitHub { 9 owner = "PhrozenByte"; 10 repo = pname; 11 rev = "v${version}"; 12 sha256 = "0wfb2ykzlsxyqn9krfsis9jxhaxy3pxl71a4f15an1ngfndai694"; 13 }; 14 15 nativeBuildInputs = [ makeWrapper ]; 16 17 installPhase = '' 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 ]} 22 done 23 ''; 24 25 meta = with lib; { 26 homepage = "https://github.com/PhrozenByte/rmtrash"; 27 description = "trash-put made compatible with GNUs rm and rmdir"; 28 longDescription = '' 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` 31 and `rmdir`. 32 ''; 33 license = licenses.gpl3Plus; 34 maintainers = with maintainers; [ peelz ]; 35 platforms = platforms.all; 36 }; 37}