yubikey-touch-detector: add missing systemd units and docs

This commit is contained in:
Peter Hoeg 2022-05-20 10:42:51 +08:00
parent ad5b9771dd
commit 5d60882a1e

View file

@ -16,6 +16,15 @@ buildGoModule rec {
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";