New package: safe-rm-0.11
This commit is contained in:
parent
7e78166563
commit
03ec2d9477
34
pkgs/tools/system/safe-rm/default.nix
Normal file
34
pkgs/tools/system/safe-rm/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ stdenv, fetchgit, perl, coreutils }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "safe-rm-${version}";
|
||||
version = "0.11";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://gitorious.org/safe-rm/mainline.git";
|
||||
rev = "refs/tags/${name}";
|
||||
sha256 = "1csnqq22pfbg9dwhv13x60jih0gn07bn5rwg2nhi0dsslzk4l496";
|
||||
};
|
||||
|
||||
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; {
|
||||
description = "Tool intended to prevent the accidental deletion of important files.";
|
||||
homepage = https://launchpad.net/safe-rm;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.koral ];
|
||||
};
|
||||
}
|
@ -2208,6 +2208,8 @@ let
|
||||
|
||||
safecopy = callPackage ../tools/system/safecopy { };
|
||||
|
||||
safe-rm = callPackage ../tools/system/safe-rm { };
|
||||
|
||||
salut_a_toi = callPackage ../applications/networking/instant-messengers/salut-a-toi {};
|
||||
|
||||
samplicator = callPackage ../tools/networking/samplicator { };
|
||||
|
Loading…
Reference in New Issue
Block a user