nixpkgs-suyu/pkgs/tools/security/nwipe/default.nix

43 lines
736 B
Nix
Raw Normal View History

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