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

33 lines
904 B
Nix
Raw Normal View History

2020-06-24 02:39:06 +02:00
{ lib, fetchFromGitHub, rustPlatform, libsodium, libseccomp, sqlite, pkgconfig
}:
2020-04-15 09:20:46 +02:00
rustPlatform.buildRustPackage rec {
pname = "sn0int";
2020-06-24 02:39:06 +02:00
version = "0.19.1";
2020-04-15 09:20:46 +02:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2020-06-24 02:39:06 +02:00
sha256 = "10f1wblczxlww09f4dl8i9zzgpr14jj7s329wkvm7lafmwx3qrn5";
2020-04-15 09:20:46 +02:00
};
2020-06-24 02:39:06 +02:00
cargoSha256 = "1v0q751ylsfpdjwsbl20pvn7g75w503jwjl5kn5kc8xq3g0lnp65";
2020-04-15 09:20:46 +02:00
nativeBuildInputs = [ pkgconfig ];
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";
license = licenses.gpl3;
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}