Merge pull request #291162 from xrelkd/update/sn0int

sn0int: install shell completions
This commit is contained in:
Mario Rodas
2024-02-28 08:59:02 -05:00
committed by GitHub
2 changed files with 10 additions and 2 deletions
@@ -7,6 +7,7 @@
, pkgs
, sqlite
, stdenv
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
@@ -24,6 +25,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [
@@ -39,6 +41,13 @@ rustPlatform.buildRustPackage rec {
# in "checkPhase", hence fails in sandbox of "nix".
doCheck = false;
postInstall = ''
installShellCompletion --cmd sn0int \
--bash <($out/bin/sn0int completions bash) \
--fish <($out/bin/sn0int completions fish) \
--zsh <($out/bin/sn0int completions zsh)
'';
meta = with lib; {
description = "Semi-automatic OSINT framework and package manager";
homepage = "https://github.com/kpcyrd/sn0int";
@@ -46,5 +55,6 @@ rustPlatform.buildRustPackage rec {
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab xrelkd ];
platforms = platforms.linux ++ platforms.darwin;
mainProgram = "sn0int";
};
}
-2
View File
@@ -13257,8 +13257,6 @@ with pkgs;
smpq = callPackage ../applications/misc/smpq { };
sn0int = callPackage ../tools/security/sn0int { };
snabb = callPackage ../tools/networking/snabb { };
snallygaster = callPackage ../tools/security/snallygaster { };