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

45 lines
944 B
Nix
Raw Normal View History

2021-05-23 14:12:56 +03:00
{ lib
, fetchFromGitHub
, rustPlatform
, libsodium
, libseccomp
, sqlite
, pkg-config
2020-06-24 03:39:06 +03:00
}:
2020-04-15 10:20:46 +03:00
rustPlatform.buildRustPackage rec {
pname = "sn0int";
2021-10-25 12:08:35 +03:00
version = "0.23.0";
2020-04-15 10:20:46 +03:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2021-10-25 12:08:35 +03:00
sha256 = "sha256-DsDSGF43yEyYYduRHu4+VRrPZ89Ce1fwtDxit0x8Apo=";
2020-04-15 10:20:46 +03:00
};
2021-10-25 12:08:35 +03:00
cargoSha256 = "sha256-dXNIbngfwMVvLx4uSO6MWpSrZfUGhlggGvXHysYAJIE=";
2020-04-15 10:20:46 +03:00
2021-05-23 14:12:56 +03:00
nativeBuildInputs = [
pkg-config
];
2020-04-15 10:20:46 +03:00
2021-05-23 14:12:56 +03:00
buildInputs = [
libsodium
libseccomp
sqlite
];
2020-04-15 10:20:46 +03: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-10 01:20:25 +03:00
license = with licenses; [ gpl3Plus ];
2020-04-15 10:20:46 +03:00
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}