From bfc590572f48a03ad0c651a458abc964f9df789d Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 9 Mar 2019 15:29:56 +0100 Subject: [PATCH] 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 --- pkgs/applications/misc/yubioath-desktop/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/yubioath-desktop/default.nix b/pkgs/applications/misc/yubioath-desktop/default.nix index d1fa28318d00..edafb0034800 100644 --- a/pkgs/applications/misc/yubioath-desktop/default.nix +++ b/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"