diff --git a/modules/sway/default.nix b/modules/sway/default.nix index b327dfdf..fededbe5 100644 --- a/modules/sway/default.nix +++ b/modules/sway/default.nix @@ -60,7 +60,7 @@ in kanshi mako slurp - swaynotificationcenter + swaynotificationcenter-master swayidle swaylock swaybg diff --git a/overlays/swaynotificationcenter-remove-post-install.patch b/overlays/swaynotificationcenter-remove-post-install.patch new file mode 100644 index 00000000..5615dd15 --- /dev/null +++ b/overlays/swaynotificationcenter-remove-post-install.patch @@ -0,0 +1,11 @@ +diff --git a/meson.build b/meson.build +index 6557624..f82460e 100644 +--- a/meson.build ++++ b/meson.build +@@ -126,6 +126,3 @@ if get_option('man-pages') + endforeach + endif + endif +- +-# Run the postinstall script when installing +-meson.add_install_script('build-aux/meson/postinstall.py') diff --git a/overlays/swaynotificationcenter.nix b/overlays/swaynotificationcenter.nix new file mode 100644 index 00000000..339d923c --- /dev/null +++ b/overlays/swaynotificationcenter.nix @@ -0,0 +1,14 @@ +final: prev: { + swaynotificationcenter-master = prev.swaynotificationcenter.overrideAttrs (oldAttrs: { + version = "unstable-2022-07-11"; + src = prev.fetchFromGitHub { + owner = "ErikReider"; + repo = "SwayNotificationCenter"; + rev = "4f142f54f6af6882338f5ce2e9ac529be523f841"; + sha256 = "sha256-BF2EZ/0gPtBRAIFvAGhHkp+0H9EA7zYjN8ujDmdHfo0="; + }; + patches = [ + ./swaynotificationcenter-remove-post-install.patch + ]; + }); +}