1 { lib, mkDerivation, fetchFromGitHub, qmake, pcsclite, pkg-config, opensc }:
4 pname = "chrome-token-signing";
7 src = fetchFromGitHub {
9 repo = "chrome-token-signing";
11 sha256 = "sha256-wKy/RVR7jx5AkMJgHXsuV+jlzyfH5nDRggcIUgh2ML4=";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ qmake pcsclite ];
16 dontUseQmakeConfigure = true;
19 substituteInPlace host-linux/ee.ria.esteid.json --replace /usr $out
21 substituteInPlace host-shared/PKCS11Path.cpp \
22 --replace opensc-pkcs11.so ${opensc}/lib/pkcs11/opensc-pkcs11.so
26 install -D -t $out/bin host-linux/chrome-token-signing
28 install -D -t $out/etc/chromium/native-messaging-hosts host-linux/ee.ria.esteid.json
29 install -D -t $out/lib/mozilla/native-messaging-hosts host-linux/ff/ee.ria.esteid.json
33 description = "Chrome and Firefox extension for signing with your eID on the web";
34 homepage = "https://github.com/open-eid/chrome-token-signing/wiki";
35 license = licenses.lgpl21;
36 maintainers = [ maintainers.mmahut ];
37 platforms = platforms.linux;