diff options
Diffstat (limited to 'pkgs/by-name/nw/nwipe/package.nix')
-rw-r--r-- | pkgs/by-name/nw/nwipe/package.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/by-name/nw/nwipe/package.nix b/pkgs/by-name/nw/nwipe/package.nix new file mode 100644 index 0000000000000..33264c49e7635 --- /dev/null +++ b/pkgs/by-name/nw/nwipe/package.nix @@ -0,0 +1,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; + }; +} |