trivionomicon: athena-bccr: add support for non-Athena driver vendors

This commit is contained in:
Alejandro Soto 2026-03-02 19:48:42 -06:00
parent 62eee95d99
commit 57f673b495
6 changed files with 152 additions and 144 deletions

View file

@ -5,7 +5,7 @@
maven,
openjdk,
wrapGAppsHook3,
libasep11 ? null,
pkcs11-module ? null,
}: let
jdk = openjdk.override {
enableJavaFX = true;
@ -34,8 +34,8 @@ in
wrapGAppsHook3
];
postPatch = lib.optionalString (libasep11 != null) ''
sed -i 's@/usr/lib/x64-athena/libASEP11.so@${libasep11}@g' src/main/java/cr/libre/firmador/signers/CRSigner.java
postPatch = lib.optionalString (pkcs11-module != null) ''
sed -i 's@/usr/lib/x64-athena/libASEP11.so@${pkcs11-module}@g' src/main/java/cr/libre/firmador/signers/CRSigner.java
'';
installPhase = ''