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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
736 B
Nix
Raw Normal View History

2021-04-19 21:54:39 +00:00
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, ncurses
, parted
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "nwipe";
2022-07-29 13:48:08 +00:00
version = "0.34";
2021-04-19 21:54:39 +00:00
src = fetchFromGitHub {
owner = "martijnvanbrummelen";
repo = "nwipe";
rev = "v${version}";
2022-07-29 13:48:08 +00:00
sha256 = "sha256-7WI8AwWkg9rOjAbOyDgCVOpeMxvJ5Bd1yvzfSv6TPLs=";
};
2021-04-19 21:54:39 +00:00
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
ncurses
parted
];
preConfigure = ''
sh init.sh || :
'';
meta = with lib; {
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 ];
platforms = platforms.linux;
};
}