Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
makeWrapper,
|
|
trash-cli,
|
|
coreutils,
|
|
which,
|
|
getopt,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "rmtrash";
|
|
version = "1.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PhrozenByte";
|
|
repo = "rmtrash";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-vCtIM6jAYfrAOopiTcb4M5GNtucVnK0XEEKbMq1Cbc4=";
|
|
};
|
|
|
|
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 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|