10 stdenv.mkDerivation rec {
11 pname = "rainbowcrack";
15 url = "http://project-rainbowcrack.com/rainbowcrack-${version}-linux64.zip";
16 hash = "sha256-xMC9teHiDvBY/VHV63TsNQjdcuLqHGeXUyjHvRTO9HQ=";
24 buildInputs = [ stdenv.cc.cc.lib ];
31 mkdir -p $out/{bin,share/rainbowcrack}
32 unzip $src -d $out || true
36 install -Dm644 $out/rainbowcrack-1.8-linux64/*.txt $out/share/rainbowcrack
37 install -Dm755 $out/rainbowcrack-1.8-linux64/rt* $out/rainbowcrack-1.8-linux64/rcrack $out/bin
39 rm -rf $out/rainbowcrack-1.8-linux64
42 runtimeDependencies = [ alglib ];
45 description = "Rainbow table generator used for password cracking";
46 homepage = "http://project-rainbowcrack.com";
47 maintainers = with lib.maintainers; [ tochiaha ];
48 license = lib.licenses.unfree;
49 mainProgram = "rcrack";
50 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
51 platforms = [ "x86_64-linux64" ];