2014-10-21 12:31:28 +02:00
|
|
|
{ stdenv, fetchgit, perl, coreutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "safe-rm";
|
2014-12-23 22:32:49 +01:00
|
|
|
version = "0.12";
|
2014-10-21 12:31:28 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitorious.org/safe-rm/mainline.git";
|
2019-08-15 14:41:18 +02:00
|
|
|
rev = "refs/tags/${pname}-${version}";
|
2016-06-02 13:26:44 +02:00
|
|
|
sha256 = "0zkmwxyl1870ar6jr9h537vmqgkckqs9jd1yv6m4qqzdsmg5gdbq";
|
2014-10-21 12:31:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ perl coreutils ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
sed -e 's@/bin/rm@${coreutils}/bin/rm@' -i $out/bin/safe-rm
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp safe-rm $out/bin
|
|
|
|
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
pod2man safe-rm > $out/share/man/man1/safe-rm.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "Tool intended to prevent the accidental deletion of important files";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://launchpad.net/safe-rm";
|
2014-10-21 12:31:28 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.koral ];
|
|
|
|
};
|
|
|
|
}
|