diff --git a/pkgs/by-name/bi/bitcrook/package.nix b/pkgs/by-name/bi/bitcrook/package.nix new file mode 100644 index 000000000000..3dcf27e3ba5f --- /dev/null +++ b/pkgs/by-name/bi/bitcrook/package.nix @@ -0,0 +1,41 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + versionCheckHook, +}: + +buildGoModule rec { + pname = "bitcrook"; + version = "2.3.2"; + + src = fetchFromGitHub { + owner = "ax-i-om"; + repo = "bitcrook"; + tag = "v${version}"; + hash = "sha256-O2u5e6LmfrxsfrBY3OPFTottheGO+ue8qMLqbDVMBhA="; + }; + + vendorHash = "sha256-19uN+jTqZDqIu/rqS/U9JSnZWowTlLAgHG7+YhXaOd4="; + + ldflags = [ + "-s" + "-w" + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + + # Tests require network access + doCheck = false; + + meta = { + description = "Tool to do OSINT"; + homepage = "https://github.com/ax-i-om/bitcrook"; + changelog = "https://github.com/ax-i-om/bitcrook/releases/tag/${src.tag}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "bitcrook"; + }; +}