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

33 lines
920 B
Nix
Raw Normal View History

2021-01-16 19:51:22 -08:00
{ lib, fetchFromGitHub, rustPlatform, libsodium, libseccomp, sqlite, pkg-config
2020-06-23 17:39:06 -07:00
}:
2020-04-15 00:20:46 -07:00
rustPlatform.buildRustPackage rec {
pname = "sn0int";
2021-01-09 13:44:19 -08:00
version = "0.20.0";
2020-04-15 00:20:46 -07:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2021-01-09 13:44:19 -08:00
sha256 = "1zjrbrkk7phv8s5qr0gj6fnssa31j3k3m8c55pdfmajh7ry7wwd1";
2020-04-15 00:20:46 -07:00
};
2021-01-09 13:44:19 -08:00
cargoSha256 = "1jvaavhjyalnh10vfhrdyqg1jnl8b4a3gnp8a31bgi3mb0v466k3";
2020-04-15 00:20:46 -07:00
2021-01-16 19:51:22 -08:00
nativeBuildInputs = [ pkg-config ];
2020-04-15 00:20:46 -07: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 14:20:25 -08:00
license = with licenses; [ gpl3Plus ];
2020-04-15 00:20:46 -07:00
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}