nixpkgs/pkgs/tools/security/nwipe/default.nix
Charles Duffy bb1e579d74
nwipe: 0.30 -> 0.31
Miscellaneous upstream bugfixes, notably including musl support.
2021-06-22 10:41:46 -05:00

43 lines
736 B
Nix

{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, ncurses
, parted
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "nwipe";
version = "0.31";
src = fetchFromGitHub {
owner = "martijnvanbrummelen";
repo = "nwipe";
rev = "v${version}";
sha256 = "sha256-+xwQLjl0jhven6udfCprRKW8qWM6JMh5MOZ+ZdaJWQg=";
};
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;
};
}