diff options
author | Pascal Wittmann <PascalWittmann@gmx.net> | 2016-02-01 11:56:10 +0100 |
---|---|---|
committer | Pascal Wittmann <PascalWittmann@gmx.net> | 2016-02-01 11:56:10 +0100 |
commit | 209318b1309b7cf74e5cbbcbd36cb1e36a391444 (patch) | |
tree | ad6d075864e087c605944cc4bf1156129a2e8f90 /pkgs/tools/security | |
parent | 43ea13b314dd461b94f9dbc5da9f2cb943b07a92 (diff) | |
parent | 0ed01e04258f789af8295e92a5df0bb5266cb653 (diff) | |
download | nixlib-209318b1309b7cf74e5cbbcbd36cb1e36a391444.tar nixlib-209318b1309b7cf74e5cbbcbd36cb1e36a391444.tar.gz nixlib-209318b1309b7cf74e5cbbcbd36cb1e36a391444.tar.bz2 nixlib-209318b1309b7cf74e5cbbcbd36cb1e36a391444.tar.lz nixlib-209318b1309b7cf74e5cbbcbd36cb1e36a391444.tar.xz nixlib-209318b1309b7cf74e5cbbcbd36cb1e36a391444.tar.zst nixlib-209318b1309b7cf74e5cbbcbd36cb1e36a391444.zip |
Merge pull request #12491 from davidak/rarcrack
rarcrack: init at 0.2
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r-- | pkgs/tools/security/rarcrack/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/security/rarcrack/default.nix b/pkgs/tools/security/rarcrack/default.nix new file mode 100644 index 000000000000..3491feccc45c --- /dev/null +++ b/pkgs/tools/security/rarcrack/default.nix @@ -0,0 +1,39 @@ +{stdenv, fetchFromGitHub, libxml2, file, p7zip, unrar, unzip}: + +stdenv.mkDerivation rec { + name = "rarcrack-${version}"; + version = "0.2"; + + src = fetchFromGitHub { + owner = "jaredsburrows"; + repo = "Rarcrack"; + rev = "35ead64cd2b967eec3e3e3a4c328b89b11ff32a0"; + sha256 = "134fq84896w5vp8vg4qg0ybpb466njibigyd7bqqm1xydr07qrgn"; + }; + + buildInputs = [ libxml2 file p7zip unrar unzip ]; + buildFlags = if stdenv.cc.isClang then [ "CC=clang" ] else null; + installFlags = "PREFIX=\${out}"; + + patchPhase = '' + substituteInPlace rarcrack.c --replace "file -i" "${file}/bin/file -i" + ''; + + preInstall = '' + mkdir -p $out/bin + ''; + + meta = with stdenv.lib; { + description = "This program can crack zip,7z and rar file passwords"; + longDescription = '' + If you forget your password for compressed archive (rar, 7z, zip), this program is the solution. + This program uses bruteforce algorithm to find correct password. You can specify wich characters will be used in password generations. + Warning: Please don't use this program for any illegal things! + ''; + homepage = https://github.com/jaredsburrows/Rarcrack; + license = licenses.gpl2; + maintainers = with maintainers; [ davidak ]; + platforms = with platforms; unix; + }; +} + |