nixpkgs/pkgs/tools/security/nwipe/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

44 lines
763 B
Nix

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