2021-12-26 17:43:05 +00:00
|
|
|
{ lib, mkDerivation, fetchurl, cmake, darkhttpd, gettext, makeWrapper
|
|
|
|
, pkg-config, libdigidocpp, opensc, openldap, openssl, pcsclite, qtbase
|
|
|
|
, qttranslations, qtsvg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qdigidoc";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "4.2.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url =
|
|
|
|
"https://github.com/open-eid/DigiDoc4-Client/releases/download/v${version}/qdigidoc4-${version}.tar.gz";
|
|
|
|
sha256 = "1rhd3mvj6ld16zgfscj81f1vhs2nvifsizky509l1av7dsjfbbzr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
tsl = fetchurl {
|
2021-12-26 17:43:05 +00:00
|
|
|
url = "https://ec.europa.eu/tools/lotl/eu-lotl-pivot-300.xml";
|
|
|
|
sha256 = "1cikz36w9phgczcqnwk4k3mx3kk919wy2327jksmfa4cjfjq4a8d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake darkhttpd gettext makeWrapper pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace client/CMakeLists.txt \
|
|
|
|
--replace $\{TSL_URL} file://${tsl}
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libdigidocpp
|
|
|
|
opensc
|
|
|
|
openldap
|
|
|
|
openssl
|
|
|
|
pcsclite
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
qttranslations
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/qdigidoc4 \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Qt-based UI for signing and verifying DigiDoc documents";
|
|
|
|
homepage = "https://www.id.ee/";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ yegortimoshenko mmahut ];
|
|
|
|
};
|
|
|
|
}
|