Files
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

48 lines
1008 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
installShellFiles,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "thc-secure-delete";
version = "3.1.1";
src = fetchFromGitHub {
owner = "gordrs";
repo = "thc-secure-delete";
rev = "v${finalAttrs.version}";
hash = "sha256-hvWuxFkzhOSCplPtyjRtn36bIk6KdPBcpr3lAmiAyfE=";
};
nativeBuildInputs = [
pkg-config
installShellFiles
];
makeFlags = [
"CC=${stdenv.cc.targetPrefix}cc"
];
installPhase = ''
runHook preInstall
install -Dt $out/bin/ -m755 srm sdmem sswap sfill
installManPage *.1
runHook postInstall
'';
meta = with lib; {
description = "THC's Secure Delete tools";
homepage = "https://github.com/gordrs/thc-secure-delete";
changelog = "https://github.com/gordrs/thc-secure-delete/blob/v${finalAttrs.version}/CHANGES";
license = licenses.gpl2Only;
maintainers = with maintainers; [ tochiaha ];
mainProgram = "srm";
platforms = platforms.all;
};
})