Merge pull request #252525 from baloo/baloo/tpm2-pytss/hardening

This commit is contained in:
Ryan Lahfa 2023-09-02 00:53:44 +03:00 committed by GitHub
commit 1e2f7a777d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,6 +63,14 @@ buildPythonPackage rec {
sed -i "s#@TPM2_TSS@#${tpm2-tss.out}#" src/tpm2_pytss/FAPI.py
'';
# Hardening has to be disabled
# due to pycparsing handling it poorly.
# See https://github.com/NixOS/nixpkgs/issues/252023
# for more details.
hardeningDisable = [
"fortify"
];
nativeBuildInputs = [
cffi
pkgconfig # this is the Python module