mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libxml2,
|
|
file,
|
|
p7zip,
|
|
unrar,
|
|
unzip,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "rarcrack";
|
|
version = "0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jaredsburrows";
|
|
repo = "Rarcrack";
|
|
rev = "35ead64cd2b967eec3e3e3a4c328b89b11ff32a0";
|
|
sha256 = "134fq84896w5vp8vg4qg0ybpb466njibigyd7bqqm1xydr07qrgn";
|
|
};
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
buildInputs = [
|
|
libxml2
|
|
file
|
|
p7zip
|
|
unrar
|
|
];
|
|
buildFlags = lib.optional stdenv.cc.isClang "CC=clang";
|
|
installFlags = [ "PREFIX=\${out}" ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace rarcrack.c --replace "file -i" "${file}/bin/file -i"
|
|
'';
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin
|
|
'';
|
|
|
|
meta = with 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.gpl2Only;
|
|
maintainers = with maintainers; [ davidak ];
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|