3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/sn0int/default.nix

45 lines
944 B
Nix
Raw Normal View History

2021-05-23 12:12:56 +01:00
{ lib
, fetchFromGitHub
, rustPlatform
, libsodium
, libseccomp
, sqlite
, pkg-config
2020-06-24 01:39:06 +01:00
}:
2020-04-15 08:20:46 +01:00
rustPlatform.buildRustPackage rec {
pname = "sn0int";
2021-07-03 23:21:44 +01:00
version = "0.21.2";
2020-04-15 08:20:46 +01:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2021-07-03 23:21:44 +01:00
sha256 = "sha256-BKdi/o/A0fJBlcKTDTCX7uGkK6QR0S9hIn0DI3CN5Gg=";
2020-04-15 08:20:46 +01:00
};
2021-07-03 23:21:44 +01:00
cargoSha256 = "sha256-MeMTXwb5v4iUJQSViOraXAck7n6VlIW2Qa0qNUZWu1g=";
2020-04-15 08:20:46 +01:00
2021-05-23 12:12:56 +01:00
nativeBuildInputs = [
pkg-config
];
2020-04-15 08:20:46 +01:00
2021-05-23 12:12:56 +01:00
buildInputs = [
libsodium
libseccomp
sqlite
];
2020-04-15 08:20:46 +01: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 08:20:46 +01:00
maintainers = with maintainers; [ xrelkd ];
platforms = platforms.linux;
};
}