diff options
author | peelz <LouisTakePILLz@users.noreply.github.com> | 2020-03-21 03:07:36 -0400 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-03-24 19:01:31 -0700 |
commit | c79b04a9a52a93c9160de302eb707376613137a7 (patch) | |
tree | 1349817556204a1b6e0facb97e4d3077907fa53e /pkgs/tools/misc/rmtrash | |
parent | e9642f25073f8e87dfb70a227c2a5f5ab178ae86 (diff) | |
download | nixpkgs-c79b04a9a52a93c9160de302eb707376613137a7.tar nixpkgs-c79b04a9a52a93c9160de302eb707376613137a7.tar.gz nixpkgs-c79b04a9a52a93c9160de302eb707376613137a7.tar.bz2 nixpkgs-c79b04a9a52a93c9160de302eb707376613137a7.tar.lz nixpkgs-c79b04a9a52a93c9160de302eb707376613137a7.tar.xz nixpkgs-c79b04a9a52a93c9160de302eb707376613137a7.tar.zst nixpkgs-c79b04a9a52a93c9160de302eb707376613137a7.zip |
rmtrash: init at 1.13
Diffstat (limited to 'pkgs/tools/misc/rmtrash')
-rw-r--r-- | pkgs/tools/misc/rmtrash/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/misc/rmtrash/default.nix b/pkgs/tools/misc/rmtrash/default.nix new file mode 100644 index 00000000000..073871b0f43 --- /dev/null +++ b/pkgs/tools/misc/rmtrash/default.nix @@ -0,0 +1,39 @@ +{ lib, stdenv, fetchFromGitHub, makeWrapper +, trash-cli, coreutils, which, getopt }: + +stdenv.mkDerivation rec { + pname = "rmtrash"; + version = "1.13"; + + src = fetchFromGitHub { + owner = "PhrozenByte"; + repo = pname; + rev = "v${version}"; + sha256 = "04a9c65wnkq1fj8qhdsdbps88xjbp7rn6p27y25v47kaysvrw01j"; + }; + + dontConfigure = true; + dontBuild = true; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + for f in rm{,dir}trash; do + install -D ./$f $out/bin/$f + wrapProgram $out/bin/$f \ + --prefix PATH : ${lib.makeBinPath [ trash-cli coreutils which getopt ]} + done + ''; + + meta = with lib; { + homepage = "https://github.com/PhrozenByte/rmtrash"; + description = "trash-put made compatible with GNUs rm and rmdir"; + longDescription = '' + Put files (and directories) in trash using the `trash-put` command in a + way that is, otherwise as `trash-put` itself, compatible to GNUs `rm` + and `rmdir`. + ''; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ peelz ]; + }; +} |