Files
nixpkgs/pkgs/by-name/re/responder/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

59 lines
1.6 KiB
Nix

{
lib,
fetchFromGitHub,
makeWrapper,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "responder";
version = "3.1.7.0";
format = "other";
src = fetchFromGitHub {
owner = "lgandx";
repo = "Responder";
tag = "v${version}";
hash = "sha256-ZC74VFnixSc97fRkRSOJmc39YLIP95qAUFydIcyzNdo=";
};
nativeBuildInputs = [
makeWrapper
];
dependencies = with python3.pkgs; [
aioquic
netifaces
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share $out/share/Responder
cp -R . $out/share/Responder
makeWrapper ${python3.interpreter} $out/bin/responder \
--set PYTHONPATH "$PYTHONPATH:$out/bin/Responder.py" \
--add-flags "$out/share/Responder/Responder.py" \
--run "mkdir -p /tmp/Responder"
substituteInPlace $out/share/Responder/Responder.conf \
--replace-fail "Responder-Session.log" "/tmp/Responder/Responder-Session.log" \
--replace-fail "Poisoners-Session.log" "/tmp/Responder/Poisoners-Session.log" \
--replace-fail "Analyzer-Session.log" "/tmp/Responder/Analyzer-Session" \
--replace-fail "Config-Responder.log" "/tmp/Responder/Config-Responder.log" \
--replace-fail "Responder.db" "/tmp/Responder/Responder.db"
runHook postInstall
'';
meta = {
description = "LLMNR, NBT-NS and MDNS poisoner, with built-in HTTP/SMB/MSSQL/FTP/LDAP rogue authentication server";
homepage = "https://github.com/lgandx/Responder";
changelog = "https://github.com/lgandx/Responder/blob/master/CHANGELOG.md";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "responder";
};
}