3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #204890 from r-ryantm/auto-update/swayidle

swayidle: 1.7.1 -> 1.8.0
This commit is contained in:
Michael Weiss 2022-12-26 23:21:05 +01:00 committed by GitHub
commit f2a15bc22f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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}"'
'';