1 { lib, gccStdenv, fetchFromGitLab, cudatoolkit
5 gccStdenv.mkDerivation rec {
9 src = fetchFromGitLab {
11 repo = "packages/truecrack";
12 rev = "debian/${version}+git20150326-0kali1";
13 sha256 = "+Rw9SfaQtO1AJO6UVVDMCo8DT0dYEbv7zX8SI+pHCRQ=";
16 configureFlags = (if cudaSupport then [
17 "--with-cuda=${cudatoolkit}"
26 buildInputs = lib.optionals cudaSupport [
30 # Workaround build failure on -fno-common toolchains like upstream
31 # gcc-10. Otherwise build fails as:
32 # ld: CpuAes.o:/build/source/src/Crypto/CpuAes.h:1233: multiple definition of
33 # `t_rc'; CpuCore.o:/build/source/src/Crypto/CpuAes.h:1237: first defined here
34 # TODO: remove on upstream fixes it:
35 # https://gitlab.com/kalilinux/packages/truecrack/-/issues/1
36 NIX_CFLAGS_COMPILE = "-fcommon";
38 installFlags = [ "prefix=$(out)" ];
39 enableParallelBuilding = true;
42 description = "TrueCrack is a brute-force password cracker for TrueCrypt volumes. It works on Linux and it is optimized for Nvidia Cuda technology.";
43 homepage = "https://gitlab.com/kalilinux/packages/truecrack";
45 license = licenses.gpl3Plus;
46 platforms = platforms.unix;
47 maintainers = with maintainers; [ ethancedwards8 ];