From 1d46988e136fec6d885877b74dba7f70ee9c70df Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Mon, 30 May 2022 01:08:49 +0200 Subject: [PATCH] qdigidoc: Wrap just once Merge `LD_LIBRARY_PATH` fixing into the automatic Qt wrapping hook. Otherwise `argv[0]` ends up as ".qdigidoc4-wrapped" due extra wrapping. --- pkgs/tools/security/qdigidoc/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/security/qdigidoc/default.nix b/pkgs/tools/security/qdigidoc/default.nix index 03fbd98baf76..e14889296751 100644 --- a/pkgs/tools/security/qdigidoc/default.nix +++ b/pkgs/tools/security/qdigidoc/default.nix @@ -1,4 +1,4 @@ -{ lib, mkDerivation, fetchurl, cmake, gettext, makeWrapper +{ lib, mkDerivation, fetchurl, cmake, gettext , pkg-config, libdigidocpp, opensc, openldap, openssl, pcsclite, qtbase , qttranslations, qtsvg }: @@ -17,7 +17,7 @@ mkDerivation rec { sha256 = "1cikz36w9phgczcqnwk4k3mx3kk919wy2327jksmfa4cjfjq4a8d"; }; - nativeBuildInputs = [ cmake gettext makeWrapper pkg-config ]; + nativeBuildInputs = [ cmake gettext pkg-config ]; postPatch = '' substituteInPlace client/CMakeLists.txt \ @@ -35,10 +35,9 @@ mkDerivation rec { qttranslations ]; - postInstall = '' - wrapProgram $out/bin/qdigidoc4 \ - --prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/ - ''; + qtWrapperArgs = [ + "--prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/" + ]; meta = with lib; { description = "Qt-based UI for signing and verifying DigiDoc documents";