Unverified Commit cf7dc4f1 authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

crackql: standardize version number, add updateScript (#444769)

parents 57b19688 eb9071b6
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  nix-update-script,
  python3,
}:

python3.pkgs.buildPythonApplication {
  pname = "crackql";
  version = "unstable-20230818";
  version = "1.0-unstable-2023-08-18";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nicholasaleks";
    repo = "CrackQL";
    # rev = "refs/tags/${version}";
    # Switch to tag with the next update
    # tag = version;
    # Switch to tag (and remove the extraArgs from the updateScript) next update
    rev = "ac26a44c2dd201f65da0d1c3f95eaf776ed1b2dd";
    hash = "sha256-XlHbGkwdOV1nobjtQP/M3IIEuzXHBuwf52EsXf3MWoM=";
  };
@@ -33,6 +34,10 @@ python3.pkgs.buildPythonApplication {
    typing-extensions
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [ "--version=branch" ];
  };

  meta = with lib; {
    description = "GraphQL password brute-force and fuzzing utility";
    mainProgram = "crackql";