depot/third_party/nixpkgs/pkgs/by-name/th/thc-secure-delete/package.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

43 lines
991 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;
};
})