So after some more research it is enough to add pcsc to the applications in src/blog.app.src
diff --git a/blog/src/blog.app.src b/blog/src/blog.app.src
index 4793c20..94b4591 100644
--- a/blog/src/blog.app.src
+++ b/blog/src/blog.app.src
@@ -5,7 +5,8 @@
{mod, {blog_app, []}},
{applications,
[kernel,
- stdlib
+ stdlib,
+ pcsc
]},
{env,[]},
{modules, []},
This makes the rebar3 shell
command work. However, packaging a NIF with an escript seems to be more complicated [1], [2]. The shell example should be enough as a proof of concept though, as the packaging/release method is up to the user.
hope this helps
[1] Escript: can not load argon2_nif - wrong approach for CLI?
[2] escripts look for nifs (.so) in wrong location · Issue #2129 · erlang/rebar3 · GitHub