nixpkgs/pkgs/by-name/nw/nwipe/package.nix

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

54 lines
984 B
Nix
Raw Normal View History

2021-04-19 21:54:39 +00:00
{ lib
, stdenv
, autoreconfHook
2024-06-15 09:08:01 +00:00
, makeWrapper
2021-04-19 21:54:39 +00:00
, fetchFromGitHub
, ncurses
, parted
, pkg-config
2024-06-15 09:08:01 +00:00
, libconfig
, hdparm
, smartmontools
, dmidecode
2021-04-19 21:54:39 +00:00
}:
stdenv.mkDerivation rec {
pname = "nwipe";
2024-06-15 09:08:01 +00:00
version = "0.37";
2021-04-19 21:54:39 +00:00
src = fetchFromGitHub {
owner = "martijnvanbrummelen";
repo = "nwipe";
rev = "v${version}";
2024-06-15 09:08:01 +00:00
sha256 = "sha256-0mBiWKkMV8i9n158k843caulF90k43ctpMvKhc4HZxY";
};
2021-04-19 21:54:39 +00:00
nativeBuildInputs = [
autoreconfHook
2024-06-15 09:08:01 +00:00
makeWrapper
2021-04-19 21:54:39 +00:00
pkg-config
];
buildInputs = [
ncurses
parted
2024-06-15 09:08:01 +00:00
libconfig
2021-04-19 21:54:39 +00:00
];
2024-06-15 09:08:01 +00:00
postInstall = ''
wrapProgram $out/bin/nwipe \
--prefix PATH : ${lib.makeBinPath [ hdparm smartmontools dmidecode ]}
2021-04-19 21:54:39 +00:00
'';
2024-06-15 09:08:01 +00:00
enableParallelBuilding = true;
meta = with lib; {
description = "Securely erase disks";
mainProgram = "nwipe";
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;
2024-06-15 09:08:01 +00:00
maintainers = with maintainers; [ vifino woffs ];
platforms = platforms.linux;
};
}