skhd: add passthru.updateScript

This commit is contained in:
Austin Horstman 2024-03-26 21:27:26 -05:00
parent 3582fa96ee
commit 8c77632c33
No known key found for this signature in database

View file

@ -4,6 +4,7 @@
, Carbon
, Cocoa
, testers
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
@ -34,11 +35,15 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
'';
passthru.tests.version = testers.testVersion {
passthru = {
tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
version = "skhd-v${finalAttrs.version}";
};
updateScript = nix-update-script { };
};
meta = {
description = "Simple hotkey daemon for macOS";
homepage = "https://github.com/koekeishiya/skhd";