14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
22 hash = "sha256-tiJLwlxZ9ndircgkH23ew+3QJeuuqt93JahAtFPcuG8=";
25 useFetchCargoVendor = true;
26 cargoHash = "sha256-nDgWNm5HTvFEMQhUUnU7o2Rpzl3/bGwyB0N9Z1KorDs=";
38 ++ lib.optionals stdenv.hostPlatform.isLinux [
41 ++ lib.optionals stdenv.hostPlatform.isDarwin [
42 pkgs.darwin.apple_sdk.frameworks.Security
45 # One of the dependencies (chrootable-https) tries to read "/etc/resolv.conf"
46 # in "checkPhase", hence fails in sandbox of "nix".
49 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
50 installShellCompletion --cmd sn0int \
51 --bash <($out/bin/sn0int completions bash) \
52 --fish <($out/bin/sn0int completions fish) \
53 --zsh <($out/bin/sn0int completions zsh)
57 description = "Semi-automatic OSINT framework and package manager";
58 homepage = "https://github.com/kpcyrd/sn0int";
59 changelog = "https://github.com/kpcyrd/sn0int/releases/tag/v${version}";
60 license = with licenses; [ gpl3Plus ];
61 maintainers = with maintainers; [
65 platforms = platforms.linux ++ platforms.darwin;
66 mainProgram = "sn0int";