2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses, parted, automake, autoconf, pkg-config }:
|
2018-06-11 10:41:59 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-30 07:55:38 +01:00
|
|
|
version = "0.28";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nwipe";
|
2018-06-11 10:41:59 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martijnvanbrummelen";
|
|
|
|
repo = "nwipe";
|
|
|
|
rev = "v${version}";
|
2020-03-30 07:55:38 +01:00
|
|
|
sha256 = "1aw905lmn1vm6klqn3q7445dwmwbjhcmwnkygpq9rddacgig1gdx";
|
2018-06-11 10:41:59 +01:00
|
|
|
};
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ automake autoconf pkg-config ];
|
2018-06-11 10:41:59 +01:00
|
|
|
buildInputs = [ ncurses parted ];
|
|
|
|
preConfigure = "sh init.sh || :";
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-11 10:41:59 +01:00
|
|
|
description = "Securely erase disks";
|
2020-03-04 08:31:40 +00:00
|
|
|
homepage = "https://github.com/martijnvanbrummelen/nwipe";
|
2018-06-11 10:41:59 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.woffs ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|