Commit 1204a938 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

blur-effect: fix `cmake-4` build

Without the change the build fails as https://hydra.nixos.org/build/310527669:

    CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 3.5 has been removed from CMake.
parent 92661251
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  pkg-config,
  cmake,
  gdk-pixbuf,
@@ -20,6 +21,16 @@ stdenv.mkDerivation rec {
    sha256 = "0cjw7iz0p7x1bi4vmwrivfidry5wlkgfgdl9wly88cm3z9ib98jj";
  };

  patches = [
    # Pull cmake-4 fix:
    #   https://github.com/sonald/blur-effect/pull/7
    (fetchpatch {
      name = "cmake-4.patch";
      url = "https://github.com/sonald/blur-effect/commit/76322ad8bd0e653726a6791eb8ebcc829cbb1b38.patch?full_index=1";
      hash = "sha256-f0PBhfdrcLCZBzYx+j8+qIG9boW3S4CSyz+bS9vFKRc=";
    })
  ];

  nativeBuildInputs = [
    pkg-config
    cmake