2021-09-18 10:52:07 +00:00
|
|
|
{ lib, libnotify, buildGoModule, fetchFromGitHub, pkg-config }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "yubikey-touch-detector";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.9.3";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "maximbaz";
|
|
|
|
repo = "yubikey-touch-detector";
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-f6j+YNYASH0Adg3236QijApALd/yXJjNMYEdP0Pifw0=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
vendorSha256 = "sha256-bmFbxMU3PEWpYI0eQw/1RRDP+JGfUY8kOCeTWbdVt9k=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ libnotify ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to detect when your YubiKey is waiting for a touch (to send notification or display a visual indicator on the screen).";
|
|
|
|
homepage = "https://github.com/maximbaz/yubikey-touch-detector";
|
|
|
|
maintainers = with maintainers; [ sumnerevans ];
|
|
|
|
license = licenses.isc;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|