git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #4624 from abbradar/wipe

wipe: add package

commit342e7748e2b21e8ab1b3d46d1584b90b7d3cdb03 authorMateusz Kowalczyk <mk440@bath.ac.uk> dateThu 23 Oct 2014, 11:50 (12 years ago) parentf5c9daf0f2af77
3 files changed+41
pkgs/tools/security/wipe/default.nix+21 pkgs/tools/security/wipe/fix-install.patch+18 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/wipe/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ stdenv, fetchurl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "wipe-${version}";
5+ version = "2.3.1";
6+
7+ src = fetchurl {
8+ url = "mirror://sourceforge/wipe/${version}/${name}.tar.bz2";
9+ sha256 = "180snqvh6k6il6prb19fncflf2jcvkihlb4w84sbndcv1wvicfa6";
10+ };
11+
12+ patches = [ ./fix-install.patch ];
13+
14+ meta = with stdenv.lib; {
15+ description = "Secure file wiping utility";
16+ homepage = http://wipe.sourceforge.net/;
17+ license = licenses.gpl2;
18+ platforms = platforms.linux;
19+ maintainers = [ maintainers.abbradar ];
20+ };
21+}
pkgs/tools/security/wipe/fix-install.patchnew file+18
@@ -0,0 +1,18 @@
1+diff -ru3 wipe-2.3.1/Makefile.in wipe-2.3.1-new/Makefile.in
2+--- wipe-2.3.1/Makefile.in 2009-11-02 00:11:30.000000000 +0300
3++++ wipe-2.3.1-new/Makefile.in 2014-10-18 02:51:10.088966232 +0400
4+@@ -60,12 +60,12 @@
5+ $(INSTALL_BIN) -d $(bindir)
6+ $(INSTALL_BIN) -s $(BIN_OUT) $(bindir)
7+ $(INSTALL) -d $(mandir)/man1
8+- $(INSTALL) -o root -m 0644 wipe.1 $(mandir)/man1/
9++ $(INSTALL) -m 0644 wipe.1 $(mandir)/man1/
10+ rm -rf $(datadir)/doc/wipe*
11+ $(INSTALL) -d $(datadir)/doc/wipe
12+
13+ for file in $(DOCS); do \
14+- $(INSTALL) -o root -m 0644 $$file $(datadir)/doc/wipe/; \
15++ $(INSTALL) -m 0644 $$file $(datadir)/doc/wipe/; \
16+ done
17+
18+ install_home: $(BIN_OUT)
pkgs/top-level/all-packages.nix+2
@@ -2649,6 +2649,8 @@ let
26492649
26502650 wicd = callPackage ../tools/networking/wicd { };
26512651
2652+ wipe = callPackage ../tools/security/wipe { };
2653+
26522654 wkhtmltopdf = callPackage ../tools/graphics/wkhtmltopdf {
26532655 overrideDerivation = lib.overrideDerivation;
26542656 inherit (xlibs) libX11 libXext libXrender;