diff options
author | koral <koral att mailoo dott org> | 2014-10-21 12:31:28 +0200 |
---|---|---|
committer | koral <koral att mailoo dott org> | 2014-10-21 20:19:57 +0200 |
commit | 03ec2d947727b85cf998fc21298e09e3e1d710ec (patch) | |
tree | 62defb9ab56e68128c3fd745d052f3ad01705554 /pkgs/tools/system/safe-rm | |
parent | 7e78166563217c642ebbc8768d50abec406dd7fc (diff) | |
download | nixlib-03ec2d947727b85cf998fc21298e09e3e1d710ec.tar nixlib-03ec2d947727b85cf998fc21298e09e3e1d710ec.tar.gz nixlib-03ec2d947727b85cf998fc21298e09e3e1d710ec.tar.bz2 nixlib-03ec2d947727b85cf998fc21298e09e3e1d710ec.tar.lz nixlib-03ec2d947727b85cf998fc21298e09e3e1d710ec.tar.xz nixlib-03ec2d947727b85cf998fc21298e09e3e1d710ec.tar.zst nixlib-03ec2d947727b85cf998fc21298e09e3e1d710ec.zip |
New package: safe-rm-0.11
Diffstat (limited to 'pkgs/tools/system/safe-rm')
-rw-r--r-- | pkgs/tools/system/safe-rm/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/system/safe-rm/default.nix b/pkgs/tools/system/safe-rm/default.nix new file mode 100644 index 000000000000..418817332e92 --- /dev/null +++ b/pkgs/tools/system/safe-rm/default.nix @@ -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 ]; + }; +} |