12 pname = "chrome-token-signing";
15 src = fetchFromGitHub {
17 repo = "chrome-token-signing";
19 sha256 = "sha256-wKy/RVR7jx5AkMJgHXsuV+jlzyfH5nDRggcIUgh2ML4=";
22 nativeBuildInputs = [ pkg-config ];
27 dontUseQmakeConfigure = true;
30 substituteInPlace host-linux/ee.ria.esteid.json --replace /usr $out
32 substituteInPlace host-shared/PKCS11Path.cpp \
33 --replace opensc-pkcs11.so ${opensc}/lib/pkcs11/opensc-pkcs11.so
37 install -D -t $out/bin host-linux/chrome-token-signing
39 install -D -t $out/etc/chromium/native-messaging-hosts host-linux/ee.ria.esteid.json
40 install -D -t $out/lib/mozilla/native-messaging-hosts host-linux/ff/ee.ria.esteid.json
44 description = "Chrome and Firefox extension for signing with your eID on the web";
45 mainProgram = "chrome-token-signing";
46 homepage = "https://github.com/open-eid/chrome-token-signing/wiki";
47 license = licenses.lgpl21;
48 maintainers = [ maintainers.mmahut ];
49 platforms = platforms.linux;