mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
40 lines
894 B
Nix
40 lines
894 B
Nix
|
{
|
||
|
lib,
|
||
|
buildGoModule,
|
||
|
fetchFromGitHub,
|
||
|
}:
|
||
|
|
||
|
buildGoModule rec {
|
||
|
pname = "firefly";
|
||
|
version = "1.4.3";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "Brum3ns";
|
||
|
repo = "firefly";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-hhZw7u4NX+BvapUZv0k2Xu/UOdL7Pt8Idjat4aJzvIk=";
|
||
|
};
|
||
|
|
||
|
vendorHash = "sha256-eeVj0nU+cs1cZNVvwu4LgtQkpddtyYAYS91ANHyOjcY=";
|
||
|
|
||
|
ldflags = [
|
||
|
"-s"
|
||
|
"-w"
|
||
|
];
|
||
|
|
||
|
preCheck = ''
|
||
|
# Test fails with invalid memory address or nil pointer dereference
|
||
|
substituteInPlace tests/httpfilter_test.go \
|
||
|
--replace-fail "Test_HttpFilter" "Skip_HttpFilter"
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
|
description = "Black box fuzzer for web applications";
|
||
|
homepage = "https://github.com/Brum3ns/firefly";
|
||
|
# https://github.com/Brum3ns/firefly/issues/12
|
||
|
license = lib.licenses.unfree;
|
||
|
maintainers = with lib.maintainers; [ fab ];
|
||
|
mainProgram = "firefly";
|
||
|
};
|
||
|
}
|