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";
|
2021-12-06 21:04:26 +00:00
|
|
|
version = "0.24.1";
|
2020-04-15 07:20:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kpcyrd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-06 21:04:26 +00:00
|
|
|
sha256 = "sha256-AP/3QCol2qOvRqNW9F/m9JpiZrqtfXvr//Ku2XE3vqY=";
|
2020-04-15 07:20:46 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 21:04:26 +00:00
|
|
|
cargoSha256 = "sha256-gdDQjYU8hJdkQCh1Iswn5KlPW2BT/J5vCSOS/KHvbH4=";
|
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";
|
2021-01-09 22:20:25 +00:00
|
|
|
license = with licenses; [ gpl3Plus ];
|
2020-04-15 07:20:46 +00:00
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|