Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zip2hashcat: init at 1.0 #351559

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions pkgs/by-name/zi/zip2hashcat/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
lib,
stdenv,
fetchFromGitHub,
...
}:

stdenv.mkDerivation rec {
pname = "zip2hashcat";
version = "1.0";

src = fetchFromGitHub {
owner = "hashstation";
repo = "zip2hashcat";
# Upstream 1.0 tag has no content
rev = "462bd94ea30d69a0810ca9bb3d056aa0f5393d57";
hash = "sha256-+hbDTGSDUxA7M8gBI/TViJ2ZvheNxlonYC/aFLvgPW8=";
};

buildPhase = ''
runHook preBuild

$CC zip2hashcat.c -o zip2hashcat

runHook postBuild
'';

installPhase = ''
runHook preInstall

mkdir -p $out/bin
mv zip2hashcat $out/bin/zip2hashcat

runHook postInstall
'';

meta = {
description = "Processes input ZIP files into a format suitable for use with hashcat";
homepage = "https://github.com/hashstation/zip2hashcat";
license = lib.licenses.mit;
changelog = "https://github.com/hashstation/zip2hashcat/releases/tag/${version}";
maintainers = with lib.maintainers; [ pyrox0 ];
pyrox0 marked this conversation as resolved.
Show resolved Hide resolved
mainProgram = "zip2hashcat";
platforms = lib.platforms.all;
};
}