bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{ lib, gccStdenv, fetchFromGitLab, cudatoolkit
|
|
, cudaSupport ? false
|
|
, pkg-config }:
|
|
|
|
gccStdenv.mkDerivation rec {
|
|
pname = "truecrack";
|
|
version = "3.6";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "kalilinux";
|
|
repo = "packages/truecrack";
|
|
rev = "debian/${version}+git20150326-0kali1";
|
|
sha256 = "+Rw9SfaQtO1AJO6UVVDMCo8DT0dYEbv7zX8SI+pHCRQ=";
|
|
};
|
|
|
|
configureFlags = (if cudaSupport then [
|
|
"--with-cuda=${cudatoolkit}"
|
|
] else [
|
|
"--enable-cpu"
|
|
]);
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = lib.optionals cudaSupport [
|
|
cudatoolkit
|
|
];
|
|
|
|
installFlags = [ "prefix=$(out)" ];
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "TrueCrack is a brute-force password cracker for TrueCrypt volumes. It works on Linux and it is optimized for Nvidia Cuda technology.";
|
|
homepage = "https://gitlab.com/kalilinux/packages/truecrack";
|
|
broken = cudaSupport;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ ethancedwards8 ];
|
|
};
|
|
}
|