blob: 33264c49e763582505928681a4f6ff3bec82b428 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, stdenv
, autoreconfHook
, makeWrapper
, fetchFromGitHub
, ncurses
, parted
, pkg-config
, libconfig
, hdparm
, smartmontools
, dmidecode
}:
stdenv.mkDerivation rec {
pname = "nwipe";
version = "0.37";
src = fetchFromGitHub {
owner = "martijnvanbrummelen";
repo = "nwipe";
rev = "v${version}";
sha256 = "sha256-0mBiWKkMV8i9n158k843caulF90k43ctpMvKhc4HZxY";
};
nativeBuildInputs = [
autoreconfHook
makeWrapper
pkg-config
];
buildInputs = [
ncurses
parted
libconfig
];
postInstall = ''
wrapProgram $out/bin/nwipe \
--prefix PATH : ${lib.makeBinPath [ hdparm smartmontools dmidecode ]}
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Securely erase disks";
mainProgram = "nwipe";
homepage = "https://github.com/martijnvanbrummelen/nwipe";
license = licenses.gpl2Only;
maintainers = with maintainers; [ vifino woffs ];
platforms = platforms.linux;
};
}
|