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

45 lines
1.1 KiB
Nix
Raw Normal View History

2018-07-05 12:41:15 +00:00
{ stdenv, fetchgit, cmake, gettext, makeWrapper, pkgconfig, libdigidocpp
, opensc, openldap, openssl, pcsclite, qtbase, qttranslations }:
2016-04-26 21:48:13 +00:00
stdenv.mkDerivation rec {
name = "qdigidoc-${version}";
2018-07-05 12:41:15 +00:00
version = "3.13.6";
2016-04-26 21:48:13 +00:00
2018-07-05 12:41:15 +00:00
src = fetchgit {
url = "https://github.com/open-eid/qdigidoc";
rev = "v${version}";
sha256 = "1qq9fgvkc7fi37ly3kgxksrm4m5rxk9k5s5cig8z0cszsfk6h9lx";
fetchSubmodules = true;
2016-04-26 21:48:13 +00:00
};
2018-07-05 12:41:15 +00:00
patches = [
# https://github.com/open-eid/qdigidoc/pull/163
./qt511.patch
];
2016-04-26 21:48:13 +00:00
2018-07-05 12:41:15 +00:00
nativeBuildInputs = [ cmake gettext makeWrapper pkgconfig ];
buildInputs = [
libdigidocpp
opensc
openldap
openssl
pcsclite
qtbase
qttranslations
];
2016-04-26 21:48:13 +00:00
postInstall = ''
wrapProgram $out/bin/qdigidocclient \
--prefix LD_LIBRARY_PATH : ${opensc}/lib/pkcs11/
'';
meta = with stdenv.lib; {
2018-07-05 12:41:15 +00:00
description = "Qt-based UI for signing and verifying DigiDoc documents";
homepage = https://www.id.ee/;
license = licenses.lgpl21Plus;
2016-04-26 21:48:13 +00:00
platforms = platforms.linux;
2018-07-05 12:41:15 +00:00
maintainers = with maintainers; [ yegortimoshenko ];
2016-04-26 21:48:13 +00:00
};
}