25 "https://github.com/open-eid/DigiDoc4-Client/releases/download/v${version}/qdigidoc4-${version}.tar.gz";
26 hash = "sha256-szFLY9PpZMMYhfV5joueShfu92YDVmcCC3MOWIOAKVg=";
31 url = "https://github.com/open-eid/DigiDoc4-Client/commit/bb324d18f0452c2ab1b360ff6c42bb7f11ea60d7.patch";
32 hash = "sha256-JpaU9inupSDsZKhHk+sp5g+oUynVFxR7lshjTXoFIbU=";
36 # Check https://dss.nowina.lu/tl-info, "Pivots loaded" section
38 url = "https://ec.europa.eu/tools/lotl/eu-lotl-pivot-341.xml";
39 hash = "sha256-/TI8qYxXzourjGFPBpsQzi9Depi7lLQ2JaV+FyP0FtE=";
42 nativeBuildInputs = [ cmake gettext pkg-config qttools ];
45 substituteInPlace client/CMakeLists.txt \
46 --replace $\{TSL_URL} file://${tsl}
60 # qdigidoc4's `QPKCS11::reload()` dlopen()s "opensc-pkcs11.so" in QLibrary,
61 # i.e. OpenSC's module is searched for in libQt5Core's DT_RUNPATH and fixing
62 # qdigidoc4's DT_RUNPATH has no effect on Linux (at least OpenBSD's ld.so(1)
63 # searches the program's runtime path as well).
64 # LD_LIBRARY_PATH takes precedence for all calling objects, see dlopen(3).
65 # https://github.com/open-eid/cmake/pull/35 might be an alternative.
67 "--prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/"
71 description = "Qt-based UI for signing and verifying DigiDoc documents";
72 mainProgram = "qdigidoc4";
73 homepage = "https://www.id.ee/";
74 license = licenses.lgpl21Plus;
75 platforms = platforms.linux;
76 maintainers = with maintainers; [ flokli mmahut ];