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
40 lines
960 B
Nix
40 lines
960 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
autoreconfHook,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "wipe";
|
|
version = "2.3.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/wipe/${version}/${pname}-${version}.tar.bz2";
|
|
hash = "sha256-RjkWNw+bNbs0QZwsCuPcTApHHbMuhZWvodFMAze2GqA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Do not strip binary during install
|
|
substituteInPlace Makefile.in \
|
|
--replace-fail '$(INSTALL_BIN) -s' '$(INSTALL_BIN)'
|
|
'';
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
# fdatasync is undocumented on darwin with no header file which breaks the build.
|
|
# use fsync instead.
|
|
configureFlags = lib.optional stdenv.hostPlatform.isDarwin "ac_cv_func_fdatasync=no";
|
|
|
|
patches = [ ./fix-install.patch ];
|
|
|
|
meta = {
|
|
description = "Secure file wiping utility";
|
|
homepage = "https://wipe.sourceforge.net/";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = [ ];
|
|
mainProgram = "wipe";
|
|
};
|
|
}
|