From f27893f48f24699949bded204c58d3feeef4d009 Mon Sep 17 00:00:00 2001 From: Ivan Jager Date: Thu, 21 Apr 2022 06:45:48 -0500 Subject: [PATCH] swaylock-effects: fix the build (mismatched-dealloc error) ../main.c:1670:25: error: 'free' called on pointer returned from a mismatched allocation function [-Werror=mismatched-dealloc] See https://github.com/swaywm/swaylock/issues/198 --- pkgs/applications/window-managers/sway/lock-effects.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/window-managers/sway/lock-effects.nix b/pkgs/applications/window-managers/sway/lock-effects.nix index 25714f1f8a94..9e919d3f88e1 100644 --- a/pkgs/applications/window-managers/sway/lock-effects.nix +++ b/pkgs/applications/window-managers/sway/lock-effects.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , meson , ninja , pkg-config @@ -24,6 +25,13 @@ stdenv.mkDerivation rec { sha256 = "sha256-71IX0fC4xCPP6pK63KtvDMb3KoP1rw/Iz3S7BgiLSpg="; }; + patches = [ + (fetchpatch { + url = "https://github.com/mortie/swaylock-effects/commit/dfff235b09b475e79d75a040a0307a359974d360.patch"; + sha256 = "t8Xz2wRSBlwGtkpWZyIGWX7V/y0P1r/50P8MfauMh4c="; + }) + ]; + postPatch = '' sed -iE "s/version: '1\.3',/version: '${version}',/" meson.build '';