2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, libsodium
|
|
|
|
, libseccomp
|
|
|
|
, sqlite
|
|
|
|
, pkg-config
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sn0int";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.22.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kpcyrd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-0BadgWZhP73WOVO18jtcdhsM0L7AM0TQ3PF7MNJM7M0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
cargoSha256 = "sha256-KYrJIOaFX2wTDj4KeHn3d8wBHfVevCKQK/bDglfLWAU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsodium
|
|
|
|
libseccomp
|
|
|
|
sqlite
|
|
|
|
];
|
2020-04-24 23:36:52 +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";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with licenses; [ gpl3Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|