mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
dalfox: build with rustPlatform (#537065)
This commit is contained in:
commit
17dba7d39e
1 changed files with 17 additions and 10 deletions
|
|
@ -1,10 +1,13 @@
|
|||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
openssl,
|
||||
pkg-config,
|
||||
rustPlatform,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "dalfox";
|
||||
version = "3.1.2";
|
||||
|
||||
|
|
@ -15,20 +18,24 @@ buildGoModule (finalAttrs: {
|
|||
hash = "sha256-0amVlnLwwb7YAUbTce9gRmjv3W1FMgc2/XZQKCettTY=";
|
||||
};
|
||||
|
||||
vendorHash = null;
|
||||
cargoHash = "sha256-pxlUEGCrJjoakAVpXFq2q73wEWiODsHvdax12quDlec=";
|
||||
|
||||
ldflags = [
|
||||
"-w"
|
||||
"-s"
|
||||
];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
# Tests require network access
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
# Many unit tests perform live HTTP requests / OOB interactsh lookups and
|
||||
# fail in the sandbox.
|
||||
doCheck = false;
|
||||
|
||||
doInstallCheck = true;
|
||||
|
||||
meta = {
|
||||
description = "Tool for analysing parameter and XSS scanning";
|
||||
description = "Tool for analyzing parameter and XSS scanning";
|
||||
homepage = "https://github.com/hahwul/dalfox";
|
||||
changelog = "https://github.com/hahwul/dalfox/releases/tag/v${finalAttrs.version}";
|
||||
changelog = "https://github.com/hahwul/dalfox/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
mainProgram = "dalfox";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue