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 , Carbon
, Cocoa , Cocoa
, testers , testers
, nix-update-script
}: }:
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
@ -34,9 +35,13 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out substituteInPlace $out/Library/LaunchDaemons/org.nixos.skhd.plist --subst-var out
''; '';
passthru.tests.version = testers.testVersion { passthru = {
package = finalAttrs.finalPackage; tests.version = testers.testVersion {
version = "skhd-v${finalAttrs.version}"; package = finalAttrs.finalPackage;
version = "skhd-v${finalAttrs.version}";
};
updateScript = nix-update-script { };
}; };
meta = { meta = {