git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #127518 from ethancedwards8/truecrack

truecrack: init at 3.6

commita0abac9a6416c88299697e919374b3c9b6412257 authorSandro <sandro.jaeckel@gmail.com> dateSun 20 Jun 2021, 18:08 (5 years ago) parent8ae23386a8342b
2 files changed+43
pkgs/tools/security/truecrack/default.nix+40 pkgs/top-level/all-packages.nix+3
pkgs/tools/security/truecrack/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ lib, gccStdenv, fetchFromGitLab, cudatoolkit
2+, cudaSupport ? false
3+, pkg-config }:
4+
5+gccStdenv.mkDerivation rec {
6+ pname = "truecrack";
7+ version = "3.6";
8+
9+ src = fetchFromGitLab {
10+ owner = "kalilinux";
11+ repo = "packages/truecrack";
12+ rev = "debian/${version}+git20150326-0kali1";
13+ sha256 = "+Rw9SfaQtO1AJO6UVVDMCo8DT0dYEbv7zX8SI+pHCRQ=";
14+ };
15+
16+ configureFlags = (if cudaSupport then [
17+ "--with-cuda=${cudatoolkit}"
18+ ] else [
19+ "--enable-cpu"
20+ ]);
21+
22+ nativeBuildInputs = [
23+ pkg-config
24+ ];
25+
26+ buildInputs = lib.optionals cudaSupport [
27+ cudatoolkit
28+ ];
29+
30+ installFlags = [ "prefix=$(out)" ];
31+ enableParallelBuilding = true;
32+
33+ meta = with lib; {
34+ description = "TrueCrack is a brute-force password cracker for TrueCrypt volumes. It works on Linux and it is optimized for Nvidia Cuda technology.";
35+ homepage = "https://gitlab.com/kalilinux/packages/truecrack";
36+ license = licenses.gpl3Plus;
37+ platforms = platforms.unix;
38+ maintainers = with maintainers; [ ethancedwards8 ];
39+ };
40+}
pkgs/top-level/all-packages.nix+3
@@ -9760,6 +9760,9 @@ in
97609760 inherit (darwin.apple_sdk.frameworks) Security;
97619761 };
97629762
9763+ truecrack = callPackage ../tools/security/truecrack { };
9764+ truecrack-cuda = truecrack.override { cudaSupport = true; };
9765+
97639766 ts = callPackage ../tools/system/ts { };
97649767
97659768 transfig = callPackage ../tools/graphics/transfig {