1{ lib
2, mkDerivation
3, fetchFromGitHub
4, cmake
5, gtest
6, pcsclite
7, pkg-config
8, qmake
9, qttranslations
10}:
11
12mkDerivation rec {
13 pname = "web-eid-app";
14 version = "2.3.1";
15
16 src = fetchFromGitHub {
17 owner = "web-eid";
18 repo = "web-eid-app";
19 rev = "v${version}";
20 sha256 = "sha256-X6/vfCDEGXFn05DUSyy7koGVxUAPJ0lv8dnTaoansKk=";
21 fetchSubmodules = true;
22 };
23
24 nativeBuildInputs = [
25 cmake
26 pkg-config
27 ];
28
29 buildInputs = [
30 gtest # required during build of lib/libelectronic-id/lib/libpcsc-cpp
31 pcsclite
32 qttranslations
33 ];
34
35 meta = with lib; {
36 description = "signing and authentication operations with smart cards for the Web eID browser extension";
37 longDescription = ''
38 The Web eID application performs cryptographic digital signing and
39 authentication operations with electronic ID smart cards for the Web eID
40 browser extension (it is the [native messaging host](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging)
41 for the extension). Also works standalone without the extension in command-line
42 mode.
43 '';
44 homepage = "https://github.com/web-eid/web-eid-app";
45 license = licenses.mit;
46 maintainers = [ maintainers.flokli ];
47 platforms = platforms.linux;
48 };
49}