yubikey-touch-detector: clean up source and meta attributes

- Use `tag = version;` instead of `rev = version;` in `fetchFromGitHub`
for clarity and correctness.
- Inline pname in install paths (`share/doc/yubikey-touch-detector`,
`share/licenses/yubikey-touch-detector`) instead of string interpolation.
- Drop `with lib;` in `meta`, qualify attributes explicitly:
- `maintainers = with lib.maintainers; [...]`
- `license = lib.licenses.isc;`
- `platforms = lib.platforms.linux;`

Improves scope hygiene, reproducibility, and consistency with
current Nixpkgs conventions.

+7 -7
+7 -7
pkgs/by-name/yu/yubikey-touch-detector/package.nix
··· 16 16 src = fetchFromGitHub { 17 17 owner = "maximbaz"; 18 18 repo = "yubikey-touch-detector"; 19 - rev = version; 19 + tag = version; 20 20 hash = "sha256-aHR/y8rAKS+dMvRdB3oAmOiI7hTA6qlF4Z05OjwYOO4="; 21 21 }; 22 22 vendorHash = "sha256-oHEcpu3QvcVC/YCtGtP7nNT9++BSU8BPT5pf8NdLrOo="; ··· 33 33 ]; 34 34 35 35 postInstall = '' 36 - install -Dm444 -t $out/share/doc/${pname} *.{md,example} 36 + install -Dm444 -t $out/share/doc/yubikey-touch-detector *.{md,example} 37 37 38 - install -Dm444 -t $out/share/licenses/${pname} LICENSE 38 + install -Dm444 -t $out/share/licenses/yubikey-touch-detector LICENSE 39 39 40 40 install -Dm444 -t $out/share/icons/hicolor/128x128/apps yubikey-touch-detector.png 41 41 ··· 48 48 installManPage yubikey-touch-detector.1 49 49 ''; 50 50 51 - meta = with lib; { 51 + meta = { 52 52 description = "Tool to detect when your YubiKey is waiting for a touch"; 53 53 homepage = "https://github.com/maximbaz/yubikey-touch-detector"; 54 - maintainers = with maintainers; [ sumnerevans ]; 55 - license = licenses.isc; 56 - platforms = platforms.linux; 54 + maintainers = with lib.maintainers; [ sumnerevans ]; 55 + license = lib.licenses.isc; 56 + platforms = lib.platforms.linux; 57 57 mainProgram = "yubikey-touch-detector"; 58 58 }; 59 59 }