yubioath-desktop: prefix QML2_IMPORT_PATH

Otherwise, yubioath-desktop can't find pyothersides qml files:

QQmlApplicationEngine failed to load component
qrc:/qml/main.qml:168 Type YubiKey unavailable
qrc:/qml/YubiKey.qml:2 module "io.thp.pyotherside" is not installed

[1]    17017 segmentation fault  result/bin/yubioath-desktop
wip/yesman
Florian Klink 5 years ago
parent 777e94d903
commit bfc590572f
  1. 3
      pkgs/applications/misc/yubioath-desktop/default.nix

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
doCheck = false;
buildInputs = [ stdenv qtbase qtquickcontrols pyotherside python3 ];
buildInputs = [ stdenv qtbase qtquickcontrols python3 ];
nativeBuildInputs = [ qmake makeWrapper python3.pkgs.wrapPython ];
@ -33,6 +33,7 @@ stdenv.mkDerivation rec {
buildPythonPath "$out $pythonPath"
wrapProgram $out/bin/yubioath-desktop \
--prefix PYTHONPATH : "$program_PYTHONPATH" \
--prefix QML2_IMPORT_PATH : "${pyotherside}/${qtbase.qtQmlPrefix}" \
--prefix LD_PRELOAD : "${yubikey-personalization}/lib/libykpers-1.so" \
--prefix LD_LIBRARY_PATH : "${stdenv.lib.getLib pcsclite}/lib:${yubikey-personalization}/lib"

Loading…
Cancel
Save