otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / by-name / nw / nwipe / package.nix
blob383d18e560adf96da828ed0e1d7cf317588b49a6
2   lib,
3   stdenv,
4   autoreconfHook,
5   makeWrapper,
6   fetchFromGitHub,
7   ncurses,
8   parted,
9   pkg-config,
10   libconfig,
11   hdparm,
12   smartmontools,
13   dmidecode,
16 stdenv.mkDerivation rec {
17   pname = "nwipe";
18   version = "0.37";
20   src = fetchFromGitHub {
21     owner = "martijnvanbrummelen";
22     repo = "nwipe";
23     rev = "v${version}";
24     sha256 = "sha256-0mBiWKkMV8i9n158k843caulF90k43ctpMvKhc4HZxY";
25   };
27   nativeBuildInputs = [
28     autoreconfHook
29     makeWrapper
30     pkg-config
31   ];
33   buildInputs = [
34     ncurses
35     parted
36     libconfig
37   ];
39   postInstall = ''
40     wrapProgram $out/bin/nwipe \
41       --prefix PATH : ${
42         lib.makeBinPath [
43           hdparm
44           smartmontools
45           dmidecode
46         ]
47       }
48   '';
50   enableParallelBuilding = true;
52   meta = with lib; {
53     description = "Securely erase disks";
54     mainProgram = "nwipe";
55     homepage = "https://github.com/martijnvanbrummelen/nwipe";
56     license = licenses.gpl2Only;
57     maintainers = with maintainers; [
58       vifino
59       woffs
60     ];
61     platforms = platforms.linux;
62   };