2016-04-26 21:48:13 +00:00
|
|
|
{ stdenv, fetchurl, cmake, ccid, qttools, qttranslations, pkgconfig, pcsclite
|
2018-02-25 02:23:58 +00:00
|
|
|
, hicolor-icon-theme, libdigidocpp, opensc, shared-mime-info, openldap
|
|
|
|
, gettext, desktop-file-utils, makeWrapper }:
|
2016-04-26 21:48:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
version = "3.12.0.1442";
|
|
|
|
name = "qdigidoc-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://installer.id.ee/media/ubuntu/pool/main/q/qdigidoc/qdigidoc_3.12.0.1442.orig.tar.xz";
|
|
|
|
sha256 = "1a7nsi28q57ic99hrb6x83qlvpqvzvk6acbfl6ncny2j4yaxa4jl";
|
|
|
|
};
|
|
|
|
|
2018-04-04 03:45:06 +00:00
|
|
|
patches = [ ./certs.patch ./glibc-2_26.patch ];
|
2016-04-26 21:48:13 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir src
|
|
|
|
tar xf $src -C src
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/qdigidocclient \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/
|
|
|
|
'';
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ cmake ccid qttools pcsclite qttranslations
|
2018-02-25 02:23:58 +00:00
|
|
|
hicolor-icon-theme libdigidocpp opensc shared-mime-info
|
|
|
|
openldap gettext desktop-file-utils makeWrapper
|
2016-04-26 21:48:13 +00:00
|
|
|
];
|
2017-11-09 09:32:41 +00:00
|
|
|
|
2017-11-09 10:51:49 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-04-26 21:48:13 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Qt based UI application for verifying and signing digital signatures";
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://www.id.ee/;
|
2016-04-26 21:48:13 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.jagajaga ];
|
|
|
|
};
|
|
|
|
}
|