Files
nixpkgs/pkgs/by-name/nw/nwipe/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

64 lines
1.0 KiB
Nix

{
lib,
stdenv,
autoreconfHook,
makeWrapper,
fetchFromGitHub,
ncurses,
parted,
pkg-config,
libconfig,
hdparm,
smartmontools,
dmidecode,
}:
stdenv.mkDerivation rec {
pname = "nwipe";
version = "0.39";
src = fetchFromGitHub {
owner = "martijnvanbrummelen";
repo = "nwipe";
rev = "v${version}";
sha256 = "sha256-uWsN4DWzmipx/+gfMl8GXTg3pSKT0UPOkqVfdHfUPdA=";
};
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;
};
}