2021-04-19 21:54:39 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ncurses
|
|
|
|
, parted
|
|
|
|
, pkg-config
|
|
|
|
}:
|
2018-06-11 09:41:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nwipe";
|
2021-06-22 15:41:46 +00:00
|
|
|
version = "0.31";
|
2021-04-19 21:54:39 +00:00
|
|
|
|
2018-06-11 09:41:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "martijnvanbrummelen";
|
|
|
|
repo = "nwipe";
|
|
|
|
rev = "v${version}";
|
2021-06-22 15:41:46 +00:00
|
|
|
sha256 = "sha256-+xwQLjl0jhven6udfCprRKW8qWM6JMh5MOZ+ZdaJWQg=";
|
2018-06-11 09:41:59 +00:00
|
|
|
};
|
2021-04-19 21:54:39 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
parted
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sh init.sh || :
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-06-11 09:41:59 +00:00
|
|
|
description = "Securely erase disks";
|
2020-03-04 08:31:40 +00:00
|
|
|
homepage = "https://github.com/martijnvanbrummelen/nwipe";
|
2021-04-19 21:54:39 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ woffs ];
|
2018-06-11 09:41:59 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|