{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "wipe";
  version = "2.3.1";

  src = fetchurl {
    url = "mirror://sourceforge/wipe/${version}/${pname}-${version}.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 ];
  };
}