Files
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

86 lines
1.5 KiB
Nix

{
ansible-lint,
bats,
cmake-lint,
cmake,
fetchFromGitHub,
lib,
libxml2,
libxslt,
linkchecker,
openscap,
python3Packages,
stdenv,
shellcheck,
yamllint,
}:
stdenv.mkDerivation rec {
pname = "scap-security-guide";
version = "0.1.76";
src = fetchFromGitHub {
owner = "ComplianceAsCode";
repo = "content";
tag = "v${version}";
hash = "sha256-M1o9UG2pKtkFByp37UP++am8lJFfnoDBkRh1fos+ED0=";
};
postPatch = ''
substituteInPlace build-scripts/generate_guides.py \
--replace-fail "XCCDF_GUIDE_XSL = None" "XCCDF_GUIDE_XSL = \"${openscap}/share/openscap/xsl/xccdf-guide.xsl\""
'';
nativeBuildInputs =
with python3Packages;
[
setuptools
sphinx
sphinxcontrib-jinjadomain
sphinx-rtd-theme
sphinx-jinja
]
++ [
cmake-lint
cmake
];
buildInputs =
with python3Packages;
[
ansible
jinja2
json2html
myst-parser
mypy
openpyxl
pcre2-py
pygithub
pyyaml
pandas
pycompliance
prometheus-async
ruamel-yaml
voluptuous-stubs
yamllint
]
++ [
ansible-lint
bats
libxslt
libxml2
linkchecker
openscap
shellcheck
yamllint
];
meta = {
description = "Security automation content in SCAP, Bash, Ansible, and other formats";
homepage = "https://github.com/ComplianceAsCode/content";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ tochiaha ];
platforms = lib.platforms.all;
};
}