nixpkgs/pkgs/tools/security/qdigidoc/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2021-01-17 04:51:22 +01:00
{ lib, stdenv, mkDerivation, fetchgit, fetchurl, cmake, darkhttpd, gettext, makeWrapper, pkg-config
2018-11-08 12:42:01 +01:00
, libdigidocpp, opensc, openldap, openssl, pcsclite, qtbase, qttranslations, qtsvg }:
2016-04-26 23:48:13 +02:00
mkDerivation rec {
pname = "qdigidoc";
version = "4.2.3";
2016-04-26 23:48:13 +02:00
2018-07-05 14:41:15 +02:00
src = fetchgit {
2018-11-08 12:42:01 +01:00
url = "https://github.com/open-eid/DigiDoc4-Client";
2018-07-05 14:41:15 +02:00
rev = "v${version}";
sha256 = "1hj49vvg8vrayr9kpz73fafa7k298hmiamkyd8c3ipy6s51xh6q4";
2018-07-05 14:41:15 +02:00
fetchSubmodules = true;
2016-04-26 23:48:13 +02:00
};
2018-08-10 12:50:22 +02:00
tsl = fetchurl {
url = "https://ec.europa.eu/information_society/policy/esignature/trusted-list/tl-mp.xml";
sha256 = "0llr2fj8vd097hcr1d0xmzdy4jydv0b5j5qlksbjffs22rqgal14";
};
2021-01-17 04:51:22 +01:00
nativeBuildInputs = [ cmake darkhttpd gettext makeWrapper pkg-config ];
2018-08-10 12:50:22 +02:00
postPatch = ''
substituteInPlace client/CMakeLists.txt \
--replace $\{TSL_URL} file://${tsl}
'';
2018-07-05 14:41:15 +02:00
buildInputs = [
libdigidocpp
opensc
openldap
openssl
pcsclite
qtbase
2018-11-08 12:42:01 +01:00
qtsvg
2018-07-05 14:41:15 +02:00
qttranslations
];
2016-04-26 23:48:13 +02:00
postInstall = ''
2018-11-08 12:42:01 +01:00
wrapProgram $out/bin/qdigidoc4 \
2016-04-26 23:48:13 +02:00
--prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/
'';
meta = with lib; {
2018-07-05 14:41:15 +02:00
description = "Qt-based UI for signing and verifying DigiDoc documents";
2020-01-29 09:14:01 +01:00
homepage = "https://www.id.ee/";
2018-07-05 14:41:15 +02:00
license = licenses.lgpl21Plus;
2016-04-26 23:48:13 +02:00
platforms = platforms.linux;
2020-01-29 09:14:01 +01:00
maintainers = with maintainers; [ yegortimoshenko mmahut ];
2016-04-26 23:48:13 +02:00
};
}