3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/nwipe/default.nix
2022-03-21 14:23:24 +00:00

43 lines
736 B
Nix

{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, ncurses
, parted
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "nwipe";
version = "0.33";
src = fetchFromGitHub {
owner = "martijnvanbrummelen";
repo = "nwipe";
rev = "v${version}";
sha256 = "sha256-i+cK2XTdWc3ByG9i+rfwL3Ds8Sl15/wZwEc5nrcWdeY=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
ncurses
parted
];
preConfigure = ''
sh init.sh || :
'';
meta = with lib; {
description = "Securely erase disks";
homepage = "https://github.com/martijnvanbrummelen/nwipe";
license = licenses.gpl2Only;
maintainers = with maintainers; [ woffs ];
platforms = platforms.linux;
};
}