diff --git a/modules/swaync/check.nix b/modules/swaync/check.nix new file mode 100644 index 0000000..c56fb59 --- /dev/null +++ b/modules/swaync/check.nix @@ -0,0 +1,14 @@ +{ self, pkgs }: +let + swayncWrapped = + (self.wrapperModules.swaync.apply { + inherit pkgs; + configOptions = { + keyboard-shortcuts = false; + }; + }).wrapper; +in +pkgs.runCommand "test-swaync" { nativeBuildInputs = [ swayncWrapped ]; } '' + swaync -v | grep "${swayncWrapped.version}" + touch $out +'' diff --git a/modules/swaync/module.nix b/modules/swaync/module.nix index ba40d84..68fc176 100644 --- a/modules/swaync/module.nix +++ b/modules/swaync/module.nix @@ -5,7 +5,7 @@ ... }: let - jsonFmt = config.pkgs.formats.json; + jsonFmt = config.pkgs.formats.json { }; in { _class = "wrapper"; @@ -14,7 +14,7 @@ in type = jsonFmt.type; default = { }; description = '' - SwayNotificationCenter configuration file. + SwayNotificationCenter configuration file. See {manpage}`swaync(5)` ''; };