scap-security-guide: init at 0.1.75
This commit is contained in:
parent
9b75f52093
commit
d8541a4b77
84
pkgs/by-name/sc/scap-security-guide/package.nix
Executable file
84
pkgs/by-name/sc/scap-security-guide/package.nix
Executable file
@ -0,0 +1,84 @@
|
||||
{
|
||||
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.75";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ComplianceAsCode";
|
||||
repo = "content";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-fS0zvWIKyGAhqgBzFuELA/1iJa4N0whsnc9h/uwA3Ao=";
|
||||
};
|
||||
|
||||
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;
|
||||
[
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user