diff options
author | Klemens Nanni <klemens@posteo.de> | 2022-05-23 00:10:33 +0200 |
---|---|---|
committer | Klemens Nanni <klemens@posteo.de> | 2022-06-02 20:45:00 +0200 |
commit | e4dbad58d2b43a9c40808a117c976f787f0a06f7 (patch) | |
tree | e132e3a7150cf84d69b6a78706aa9a8adfc71abe /pkgs/tools/security/qdigidoc | |
parent | 7d26f29bc7329088558f0c9f8c258dc4f05ce82b (diff) |
libdigidocpp: Fix PKCS11 module library path
By default, the OpenSC module is loaded as relative filename, i.e. "opensc-pkcs11.so" is searched for in the default library path. Point `LD_LIBRARY_PATH` for `digidoc-tool` to the OpenSC package just like pkgs/tools/seurity/qdigidoc/deafult.nix already does. This makes `digidoc-tool` work by default without manually setting `LD_LIBRARY_PATH` or passing `--pkcs11=/path/to/module`. Follow upstream once an appropiate patch has been merged.
Diffstat (limited to 'pkgs/tools/security/qdigidoc')
-rw-r--r-- | pkgs/tools/security/qdigidoc/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/tools/security/qdigidoc/default.nix b/pkgs/tools/security/qdigidoc/default.nix index e148892967518..183acbcfe463b 100644 --- a/pkgs/tools/security/qdigidoc/default.nix +++ b/pkgs/tools/security/qdigidoc/default.nix @@ -35,6 +35,8 @@ mkDerivation rec { qttranslations ]; + # replace this hack with a proper cmake variable or environment variable + # once https://github.com/open-eid/cmake/pull/34 (or #35) gets merged. qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/" ]; |