mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
4a0f9dcc2c
* noseyparker: init at 0.11.0 * noseyparker: 0.11.0 -> 0.12.0
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ 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" ];
|
|
};
|
|
}
|