diff options
author | Gary Guo <gary@garyguo.net> | 2023-11-10 02:10:43 +0000 |
---|---|---|
committer | Gary Guo <gary@garyguo.net> | 2023-11-10 02:22:11 +0000 |
commit | 9aa795690a4c6d572beb94e70cfbbcde06474c9b (patch) | |
tree | 59fe500956f0a5c218afca4301f5a2457b44dab5 /pkgs/misc/tpm2-pkcs11/default.nix | |
parent | 6037b4dfcf67d28147edf5f7554131ef24313f2c (diff) |
tpm2-pkcs11: allow fapi support to be disabled
Diffstat (limited to 'pkgs/misc/tpm2-pkcs11/default.nix')
-rw-r--r-- | pkgs/misc/tpm2-pkcs11/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/misc/tpm2-pkcs11/default.nix b/pkgs/misc/tpm2-pkcs11/default.nix index faf2bdd5570c1..91b7c31eb3231 100644 --- a/pkgs/misc/tpm2-pkcs11/default.nix +++ b/pkgs/misc/tpm2-pkcs11/default.nix @@ -2,6 +2,7 @@ , pkg-config, autoreconfHook, autoconf-archive, makeWrapper, patchelf , tpm2-tss, tpm2-tools, opensc, openssl, sqlite, python3, glibc, libyaml , abrmdSupport ? true, tpm2-abrmd ? null +, fapiSupport ? true }: stdenv.mkDerivation rec { @@ -15,7 +16,10 @@ stdenv.mkDerivation rec { sha256 = "sha256-SoHtgZRIYNJg4/w1MIocZAM26mkrM+UOQ+RKCh6nwCk="; }; - patches = [ ./version.patch ]; + patches = [ + ./version.patch + ./graceful-fapi-fail.patch + ]; # The preConfigure phase doesn't seem to be working here # ./bootstrap MUST be executed as the first step, before all @@ -25,6 +29,11 @@ stdenv.mkDerivation rec { ./bootstrap ''; + configureFlags = lib.optionals (!fapiSupport) [ + # Note: this will be renamed to with-fapi in next release. + "--enable-fapi=no" + ]; + nativeBuildInputs = [ pkg-config autoreconfHook autoconf-archive makeWrapper patchelf ]; |