blob: aa697b447ac0dc173f35e0b8a28798f7ce8e0bcd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ lib, libnotify, buildGoModule, fetchFromGitHub, pkg-config }:
buildGoModule rec {
pname = "yubikey-touch-detector";
version = "1.10.0";
src = fetchFromGitHub {
owner = "maximbaz";
repo = "yubikey-touch-detector";
rev = version;
sha256 = "sha256-3tZyaOrNzLfcCORhTSMEu8EvnNUjva8hBNotHgANS0g=";
};
vendorSha256 = "sha256-OitI9Yp4/mRMrNH4yrWSL785+3mykPkvzarrc6ipOeg=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libnotify ];
postInstall = ''
install -Dm444 -t $out/share/doc/${pname} *.md
install -Dm444 -t $out/lib/systemd/user *.{service,socket}
substituteInPlace $out/lib/systemd/user/*.service \
--replace /usr/bin/yubikey-touch-detector "$out/bin/yubikey-touch-detector --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;
};
}
|