nixpkgs-suyu/pkgs/tools/security/sn0int/default.nix

33 lines
918 B
Nix
Raw Normal View History

2021-01-17 04:51:22 +01:00
{ lib, fetchFromGitHub, rustPlatform, libsodium, libseccomp, sqlite, pkg-config
2020-06-24 02:39:06 +02:00
}:
2020-04-15 09:20:46 +02:00
rustPlatform.buildRustPackage rec {
pname = "sn0int";
2021-03-13 15:00:32 +01:00
version = "0.20.1";
2020-04-15 09:20:46 +02:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2021-03-13 15:00:32 +01:00
sha256 = "sha256-vnSpItch9RDUyYxERKRwYPmRLwRG9gAI7iIY+7iRs1w=";
2020-04-15 09:20:46 +02:00
};
cargoSha256 = "sha256-qgOZxuzAeDgT93TccfnVTj3OQzalHfude0ETTVMM2Pk=";
2020-04-15 09:20:46 +02:00
2021-01-17 04:51:22 +01:00
nativeBuildInputs = [ pkg-config ];
2020-04-15 09:20:46 +02:00
buildInputs = [ libsodium libseccomp sqlite ];
# 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 23:20:25 +01:00
license = with licenses; [ gpl3Plus ];
2020-04-15 09:20:46 +02:00
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}