forked from mirrors/nixpkgs
b92f37a40e
This tool is Linux only[*] but got merged with `platform.unix` meta at
init.
[*] 0f30ac2da5/README.md
?plain=1#L13
ZHF: #172160
27 lines
824 B
Nix
27 lines
824 B
Nix
{ lib, libnotify, buildGoModule, fetchFromGitHub, pkg-config }:
|
|
|
|
buildGoModule rec {
|
|
pname = "yubikey-touch-detector";
|
|
version = "1.9.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "maximbaz";
|
|
repo = "yubikey-touch-detector";
|
|
rev = version;
|
|
sha256 = "sha256-f6j+YNYASH0Adg3236QijApALd/yXJjNMYEdP0Pifw0=";
|
|
};
|
|
vendorSha256 = "sha256-H05EJwYDdg4lq6+psXiwujQd5g294epdRPjqviHhLWs=";
|
|
|
|
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.linux;
|
|
};
|
|
}
|