dalfox: build with rustPlatform (#537065)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user