2021-05-23 11:12:56 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, libsodium
|
|
|
|
, libseccomp
|
|
|
|
, sqlite
|
|
|
|
, pkg-config
|
2020-06-24 00:39:06 +00:00
|
|
|
}:
|
2020-04-15 07:20:46 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sn0int";
|
2023-02-12 11:48:28 +00:00
|
|
|
version = "0.25.0";
|
2020-04-15 07:20:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kpcyrd";
|
|
|
|
repo = pname;
|
2023-02-12 11:48:28 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+LplLeczLS+9EG0tZsiEs162/65zMCZfDDEq0iYQrGY=";
|
2020-04-15 07:20:46 +00:00
|
|
|
};
|
|
|
|
|
2023-02-12 11:48:28 +00:00
|
|
|
cargoHash = "sha256-FpoRO2g+R+Fo146kM0W8b1LHTEBHbGXURoX5jJk7lqY=";
|
2020-04-15 07:20:46 +00:00
|
|
|
|
2021-05-23 11:12:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-15 07:20:46 +00:00
|
|
|
|
2021-05-23 11:12:56 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsodium
|
|
|
|
libseccomp
|
|
|
|
sqlite
|
|
|
|
];
|
2020-04-15 07:20:46 +00:00
|
|
|
|
|
|
|
# One of the dependencies (chrootable-https) tries to read "/etc/resolv.conf"
|
|
|
|
# in "checkPhase", hence fails in sandbox of "nix".
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Semi-automatic OSINT framework and package manager";
|
|
|
|
homepage = "https://github.com/kpcyrd/sn0int";
|
2023-02-12 11:48:28 +00:00
|
|
|
changelog = "https://github.com/kpcyrd/sn0int/releases/tag/v${version}";
|
2021-01-09 22:20:25 +00:00
|
|
|
license = with licenses; [ gpl3Plus ];
|
2023-02-12 11:48:56 +00:00
|
|
|
maintainers = with maintainers; [ fab xrelkd ];
|
2020-04-15 07:20:46 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|