2022-07-28 07:09:52 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchurl
|
|
|
|
, cmake
|
|
|
|
, gettext
|
|
|
|
, pkg-config
|
|
|
|
, libdigidocpp
|
|
|
|
, opensc
|
|
|
|
, openldap
|
|
|
|
, openssl
|
|
|
|
, pcsclite
|
|
|
|
, qtbase
|
|
|
|
, qttranslations
|
|
|
|
, qtsvg
|
|
|
|
}:
|
2016-04-26 21:48:13 +00:00
|
|
|
|
2020-01-29 08:13:28 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "qdigidoc";
|
2022-07-25 02:12:14 +00:00
|
|
|
version = "4.2.12";
|
2016-04-26 21:48:13 +00:00
|
|
|
|
2021-12-19 18:13:46 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url =
|
2022-07-28 07:10:06 +00:00
|
|
|
"https://github.com/open-eid/DigiDoc4-Client/releases/download/v${version}/qdigidoc4-${version}.tar.gz";
|
|
|
|
hash = "sha256-6bso1qvhVhbBfrcTq4S+aHtHli7X2A926N4r45ztq4E=";
|
2016-04-26 21:48:13 +00:00
|
|
|
};
|
|
|
|
|
2018-08-10 10:50:22 +00:00
|
|
|
tsl = fetchurl {
|
2021-12-19 13:41:20 +00:00
|
|
|
url = "https://ec.europa.eu/tools/lotl/eu-lotl-pivot-300.xml";
|
|
|
|
sha256 = "1cikz36w9phgczcqnwk4k3mx3kk919wy2327jksmfa4cjfjq4a8d";
|
2018-08-10 10:50:22 +00:00
|
|
|
};
|
|
|
|
|
2022-05-29 23:08:49 +00:00
|
|
|
nativeBuildInputs = [ cmake gettext pkg-config ];
|
2018-08-10 10:50:22 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace client/CMakeLists.txt \
|
|
|
|
--replace $\{TSL_URL} file://${tsl}
|
|
|
|
'';
|
|
|
|
|
2018-07-05 12:41:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
libdigidocpp
|
|
|
|
opensc
|
|
|
|
openldap
|
|
|
|
openssl
|
|
|
|
pcsclite
|
|
|
|
qtbase
|
2018-11-08 11:42:01 +00:00
|
|
|
qtsvg
|
2018-07-05 12:41:15 +00:00
|
|
|
qttranslations
|
|
|
|
];
|
2016-04-26 21:48:13 +00:00
|
|
|
|
2022-06-07 10:21:39 +00:00
|
|
|
# qdigidoc4's `QPKCS11::reload()` dlopen()s "opensc-pkcs11.so" in QLibrary,
|
|
|
|
# i.e. OpenSC's module is searched for in libQt5Core's DT_RUNPATH and fixing
|
|
|
|
# qdigidoc4's DT_RUNPATH has no effect on Linux (at least OpenBSD's ld.so(1)
|
|
|
|
# searches the program's runtime path as well).
|
|
|
|
# LD_LIBRARY_PATH takes precedence for all calling objects, see dlopen(3).
|
|
|
|
# https://github.com/open-eid/cmake/pull/35 might be an alternative.
|
2022-05-29 23:08:49 +00:00
|
|
|
qtWrapperArgs = [
|
2022-06-07 10:21:39 +00:00
|
|
|
"--prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/"
|
2022-05-29 23:08:49 +00:00
|
|
|
];
|
2016-04-26 21:48:13 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-07-05 12:41:15 +00:00
|
|
|
description = "Qt-based UI for signing and verifying DigiDoc documents";
|
2020-01-29 08:14:01 +00:00
|
|
|
homepage = "https://www.id.ee/";
|
2018-07-05 12:41:15 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2016-04-26 21:48:13 +00:00
|
|
|
platforms = platforms.linux;
|
2021-12-31 18:48:55 +00:00
|
|
|
maintainers = with maintainers; [ mmahut yana ];
|
2016-04-26 21:48:13 +00:00
|
|
|
};
|
|
|
|
}
|