Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "rar2hashcat";
|
|
version = "1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashstation";
|
|
repo = "rar2hashcat";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-GVh4Gyjn84xAwO7wKXYe2DPnpb8gnxGIMH5Szce+XpY=";
|
|
};
|
|
|
|
patches = [
|
|
./darwin-support.patch
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=implicit-function-declaration -Wno-error=int-conversion";
|
|
|
|
makeFlags = [
|
|
"CC_LINUX=${stdenv.cc.targetPrefix}cc"
|
|
"rar2hashcat"
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D rar2hashcat $out/bin/rar2hashcat
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
changelog = "https://github.com/hashstation/rar2hashcat/releases/tag/${finalAttrs.version}";
|
|
description = "Processes input RAR files into a format suitable for use with hashcat";
|
|
homepage = "https://github.com/hashstation/rar2hashcat";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "rar2hashcat";
|
|
maintainers = with lib.maintainers; [ emilytrau ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|