swayidle: 1.7.1 -> 1.8.0

This commit is contained in:
R. Ryantm 2022-12-07 00:23:10 +00:00 committed by Michael Weiss
parent 7ea3d4395d
commit 89802ab160
No known key found for this signature in database
GPG key ID: 5BE487C4D4771D83

View file

@ -6,13 +6,13 @@
stdenv.mkDerivation rec {
pname = "swayidle";
version = "1.7.1";
version = "1.8.0";
src = fetchFromGitHub {
owner = "swaywm";
repo = "swayidle";
rev = version;
sha256 = "06iq12p4438d6bv3jlqsf01wjaxrzlnj1bnicn41kad563aq41xl";
sha256 = "sha256-/U6Y9H5ZqIJph3TZVcwr9+Qfd6NZNYComXuC1D9uGHg=";
};
strictDeps = true;
@ -22,11 +22,8 @@ stdenv.mkDerivation rec {
mesonFlags = [ "-Dman-pages=enabled" "-Dlogind=${if systemdSupport then "enabled" else "disabled"}" ];
# Remove the `%zu` patch for the next release after 1.7.1.
# https://github.com/swaywm/swayidle/commit/e81d40fca7533f73319e76e42fa9694b21cc9e6e
postPatch = ''
substituteInPlace main.c \
--replace '%lu' '%zu' \
--replace '"sh"' '"${runtimeShell}"'
'';