nwipe: 0.34 -> 0.37; move to by-name

This commit is contained in:
Adrian Pistol 2024-06-15 11:08:01 +02:00
parent bac3e72803
commit 31ff88c94d
2 changed files with 15 additions and 7 deletions

View File

@ -1,43 +1,53 @@
{ lib
, stdenv
, autoreconfHook
, makeWrapper
, fetchFromGitHub
, ncurses
, parted
, pkg-config
, libconfig
, hdparm
, smartmontools
, dmidecode
}:
stdenv.mkDerivation rec {
pname = "nwipe";
version = "0.34";
version = "0.37";
src = fetchFromGitHub {
owner = "martijnvanbrummelen";
repo = "nwipe";
rev = "v${version}";
sha256 = "sha256-7WI8AwWkg9rOjAbOyDgCVOpeMxvJ5Bd1yvzfSv6TPLs=";
sha256 = "sha256-0mBiWKkMV8i9n158k843caulF90k43ctpMvKhc4HZxY";
};
nativeBuildInputs = [
autoreconfHook
makeWrapper
pkg-config
];
buildInputs = [
ncurses
parted
libconfig
];
preConfigure = ''
sh init.sh || :
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; [ woffs ];
maintainers = with maintainers; [ vifino woffs ];
platforms = platforms.linux;
};
}

View File

@ -5937,8 +5937,6 @@ with pkgs;
nsz = with python3.pkgs; toPythonApplication nsz;
nwipe = callPackage ../tools/security/nwipe { };
nx2elf = callPackage ../tools/compression/nx2elf { };
nx-libs = callPackage ../tools/X11/nx-libs { };