Files
nixpkgs/pkgs/by-name/re/recon-ng/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

72 lines
1.6 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
replaceVars,
fetchpatch,
}:
python3.pkgs.buildPythonApplication rec {
pname = "recon-ng";
version = "5.1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "lanmaster53";
repo = "recon-ng";
tag = "v${version}";
hash = "sha256-W7pL4Rl86i881V53SAwECAMp2Qj/azPM3mdvxvt+gjc=";
};
build-system = [
python3.pkgs.setuptools
];
dependencies = with python3.pkgs; [
pyyaml
dnspython
lxml
mechanize
requests
flask
flask-restful
flasgger
dicttoxml
xlsxwriter
unicodecsv
rq
];
patches = [
# Support python 3.12
# https://github.com/lanmaster53/recon-ng/pull/218
# This is merged and can be removed when updating
(fetchpatch {
name = "fix_python12.patch";
url = "https://github.com/lanmaster53/recon-ng/commit/e31c30e5c314cbc5e57a13f9d3ddf29afafc4cb3.patch";
hash = "sha256-e8BTRkwb42mTTwivZ0sTxVw1hnYCUVInmy91jyVc/tw=";
})
];
postPatch =
let
setup = replaceVars ./setup.py {
inherit pname version;
};
in
''
ln -s ${setup} setup.py
'';
postInstall = ''
cp VERSION $out/${python3.sitePackages}/
cp -R recon/core/web/{definitions.yaml,static,templates} $out/${python3.sitePackages}/recon/core/web/
'';
meta = {
description = "Full-featured framework providing a powerful environment to conduct web-based reconnaissance";
license = lib.licenses.gpl3Only;
homepage = "https://github.com/lanmaster53/recon-ng/";
maintainers = with lib.maintainers; [ gamedungeon ];
};
}