diff --git a/pkgs/tools/security/noseyparker/default.nix b/pkgs/tools/security/noseyparker/default.nix new file mode 100644 index 00000000000..e5f47569fbc --- /dev/null +++ b/pkgs/tools/security/noseyparker/default.nix @@ -0,0 +1,50 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, cmake +, pkg-config +, openssl +, hyperscan +}: + +rustPlatform.buildRustPackage rec { + pname = "noseyparker"; + version = "0.12.0"; + + src = fetchFromGitHub { + owner = "praetorian-inc"; + repo = "noseyparker"; + rev = "v${version}"; + hash = "sha256-qop6KjTFPQ5o1kPEVPP0AfDfr8w/JP3YmC+sb5OUbDY="; + }; + + cargoHash = "sha256-ZtoJO/R11qTFYAE6G7AVCpnYZ3JGrxtVSXvCm0W8DAA="; + + postPatch = '' + # disabledTests (network, failing) + rm tests/test_noseyparker_github.rs + rm tests/test_noseyparker_scan.rs + ''; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + buildInputs = [ + openssl + hyperscan + ]; + + OPENSSL_NO_VENDOR = 1; + + meta = with lib; { + description = "Find secrets and sensitive information in textual data"; + 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" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1ad00e45c4f..84655dc6ffe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25697,6 +25697,8 @@ with pkgs; nix-tour = callPackage ../applications/misc/nix-tour { }; + noseyparker = callPackage ../tools/security/noseyparker { }; + nosqli = callPackage ../tools/security/nosqli { }; nsd = callPackage ../servers/dns/nsd (config.nsd or {});