11 stdenv.mkDerivation (finalAttrs: {
12 pname = "beidconnect";
15 src = fetchFromGitHub {
17 repo = "fts-beidconnect";
18 rev = finalAttrs.version;
19 hash = "sha256-xkBldXOlgLMgrvzm7ajXzJ92mpXrxHD1RX4DeBxU3kk=";
22 nativeBuildInputs = [ pkg-config ];
32 substituteInPlace Makefile \
33 --replace-fail '$(DESTDIR)/usr/bin' '$(DESTDIR)/bin'
36 makeFlags = [ "DESTDIR=$(out)" ];
37 sourceRoot = "${finalAttrs.src.name}/linux";
41 $out/etc/chromium/native-messaging-hosts \
42 $out/etc/opt/chrome/native-messaging-hosts/ \
43 $out/etc/opt/edge/native-messaging-hosts/ \
44 $out/etc/opt/vivaldi/native-messaging-hosts/ \
45 $out/etc/opt/brave/native-messaging-hosts/ \
46 $out/lib/mozilla/native-messaging-hosts \
48 $out/bin/beidconnect -setup $out/bin \
49 $out/etc/chromium/native-messaging-hosts \
50 $out/lib/mozilla/native-messaging-hosts
53 install $out/etc/chromium/native-messaging-hosts/be.bosa.beidconnect.json $out/etc/opt/chrome/native-messaging-hosts/
56 install $out/etc/chromium/native-messaging-hosts/be.bosa.beidconnect.json $out/etc/opt/edge/native-messaging-hosts/
59 install $out/etc/chromium/native-messaging-hosts/be.bosa.beidconnect.json $out/etc/opt/vivaldi/native-messaging-hosts/
62 install $out/etc/chromium/native-messaging-hosts/be.bosa.beidconnect.json $out/etc/opt/brave/native-messaging-hosts/
65 passthru.tests.version = testers.testVersion {
66 package = beidconnect;
67 command = "${beidconnect}/bin/beidconnect -version";
71 description = "BeIDConnect native messaging component";
73 The beidconnect is a program to help implementing digital signing services
74 and/or an identity service using the Belgian eID card. It provides
75 services to webbrowsers to read data from cards, and is intended to work
76 together with a WebExtension in the browser.
78 This package contains the native code. For the WebExtension, see your
79 webbrowser's extension store.
81 homepage = "https://github.com/Fedict/fts-beidconnect/";
82 license = lib.licenses.mit;
83 maintainers = [ lib.maintainers.jovandeginste ];
84 platforms = lib.platforms.linux;