diff options
author | Nikolay Amiantov <ab@fmap.me> | 2014-10-18 02:57:37 +0400 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2014-10-23 02:08:37 +0400 |
commit | 0f2af778b74866d7251df14d5a0ce72e9c588bcc (patch) | |
tree | b7ebfe0307b58a9c773adde6dc70efb2e6727309 /pkgs | |
parent | b31ac058cc19f1ebc2a15b4f6ff4475eb91b0206 (diff) | |
download | nixlib-0f2af778b74866d7251df14d5a0ce72e9c588bcc.tar nixlib-0f2af778b74866d7251df14d5a0ce72e9c588bcc.tar.gz nixlib-0f2af778b74866d7251df14d5a0ce72e9c588bcc.tar.bz2 nixlib-0f2af778b74866d7251df14d5a0ce72e9c588bcc.tar.lz nixlib-0f2af778b74866d7251df14d5a0ce72e9c588bcc.tar.xz nixlib-0f2af778b74866d7251df14d5a0ce72e9c588bcc.tar.zst nixlib-0f2af778b74866d7251df14d5a0ce72e9c588bcc.zip |
wipe: add package
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/security/wipe/default.nix | 21 | ||||
-rw-r--r-- | pkgs/tools/security/wipe/fix-install.patch | 18 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/security/wipe/default.nix b/pkgs/tools/security/wipe/default.nix new file mode 100644 index 000000000000..a7c337dc1222 --- /dev/null +++ b/pkgs/tools/security/wipe/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "wipe-${version}"; + version = "2.3.1"; + + src = fetchurl { + url = "mirror://sourceforge/wipe/${version}/${name}.tar.bz2"; + sha256 = "180snqvh6k6il6prb19fncflf2jcvkihlb4w84sbndcv1wvicfa6"; + }; + + patches = [ ./fix-install.patch ]; + + meta = with stdenv.lib; { + description = "Secure file wiping utility"; + homepage = http://wipe.sourceforge.net/; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = [ maintainers.abbradar ]; + }; +} diff --git a/pkgs/tools/security/wipe/fix-install.patch b/pkgs/tools/security/wipe/fix-install.patch new file mode 100644 index 000000000000..2df3a1eec6a0 --- /dev/null +++ b/pkgs/tools/security/wipe/fix-install.patch @@ -0,0 +1,18 @@ +diff -ru3 wipe-2.3.1/Makefile.in wipe-2.3.1-new/Makefile.in +--- wipe-2.3.1/Makefile.in 2009-11-02 00:11:30.000000000 +0300 ++++ wipe-2.3.1-new/Makefile.in 2014-10-18 02:51:10.088966232 +0400 +@@ -60,12 +60,12 @@ + $(INSTALL_BIN) -d $(bindir) + $(INSTALL_BIN) -s $(BIN_OUT) $(bindir) + $(INSTALL) -d $(mandir)/man1 +- $(INSTALL) -o root -m 0644 wipe.1 $(mandir)/man1/ ++ $(INSTALL) -m 0644 wipe.1 $(mandir)/man1/ + rm -rf $(datadir)/doc/wipe* + $(INSTALL) -d $(datadir)/doc/wipe + + for file in $(DOCS); do \ +- $(INSTALL) -o root -m 0644 $$file $(datadir)/doc/wipe/; \ ++ $(INSTALL) -m 0644 $$file $(datadir)/doc/wipe/; \ + done + + install_home: $(BIN_OUT) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 15a349956029..665b5444239f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2643,6 +2643,8 @@ let wicd = callPackage ../tools/networking/wicd { }; + wipe = callPackage ../tools/security/wipe { }; + wkhtmltopdf = callPackage ../tools/graphics/wkhtmltopdf { overrideDerivation = lib.overrideDerivation; inherit (xlibs) libX11 libXext libXrender; |