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