nixpkgs/pkgs/tools/security/noseyparker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.6 KiB
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
2024-07-24 19:19:21 +01:00
, boost
, cmake
2024-07-24 19:19:21 +01:00
, git
, hyperscan
2024-07-24 19:19:21 +01:00
, openssl
, pkg-config
}:
rustPlatform.buildRustPackage rec {
pname = "noseyparker";
2024-10-12 11:01:37 +01:00
version = "0.20.0";
src = fetchFromGitHub {
owner = "praetorian-inc";
repo = "noseyparker";
rev = "v${version}";
2024-10-12 11:01:37 +01:00
hash = "sha256-pFAtyvnqCLTY3l7c47rpN1jHjQon0fTPT3KaV9mcs3Q=";
};
2024-10-12 11:01:37 +01:00
cargoHash = "sha256-t4tZDww6aySlTBq1BB4OGhi9w6fGY2gi7mPM1SR2mt8=";
2024-07-24 19:19:21 +01:00
nativeCheckInputs = [
git
];
checkFlags = [
# These tests expect access to network to clone and use GitHub API
"--skip=github::github_repos_list_multiple_user_dedupe_jsonl_format"
"--skip=github::github_repos_list_org_badtoken"
"--skip=github::github_repos_list_user_badtoken"
"--skip=github::github_repos_list_user_human_format"
"--skip=github::github_repos_list_user_json_format"
"--skip=github::github_repos_list_user_jsonl_format"
2024-10-12 11:01:37 +01:00
"--skip=github::github_repos_list_user_repo_filter"
2024-07-24 19:19:21 +01:00
"--skip=scan::appmaker::scan_workflow_from_git_url"
];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
2024-07-24 19:19:21 +01:00
boost
hyperscan
2024-07-24 19:19:21 +01:00
openssl
];
OPENSSL_NO_VENDOR = 1;
meta = with lib; {
description = "Find secrets and sensitive information in textual data";
mainProgram = "noseyparker";
homepage = "https://github.com/praetorian-inc/noseyparker";
changelog = "https://github.com/praetorian-inc/noseyparker/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ _0x4A6F ];
# limited by hyperscan
platforms = [ "x86_64-linux" ];
};
}