From af65ee8e9cdf62cc62a3ff9c76bb55591fcb01b1 Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Thu, 23 Oct 2025 20:29:15 -0300 Subject: [PATCH] playbar2: fix build with cmake4 --- pkgs/applications/audio/playbar2/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/playbar2/default.nix b/pkgs/applications/audio/playbar2/default.nix index f698a39440a6..1eff8ab97ee6 100644 --- a/pkgs/applications/audio/playbar2/default.nix +++ b/pkgs/applications/audio/playbar2/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { version = "2.5"; src = fetchFromGitHub { - owner = "audoban"; + owner = "jsmitar"; repo = "PlayBar2"; rev = "v${version}"; sha256 = "0iv2m4flgaz2r0k7f6l0ca8p6cw8j8j2gin1gci2pg3l5g5khbch"; @@ -31,9 +31,14 @@ stdenv.mkDerivation rec { dontWrapQtApps = true; + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail "cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)" "cmake_minimum_required(VERSION 3.10)" + ''; + meta = with lib; { description = "Mpris2 Client for Plasma5"; - homepage = "https://github.com/audoban/PlayBar2"; + homepage = "https://github.com/jsmitar/PlayBar2"; license = licenses.gpl3; platforms = platforms.linux; maintainers = with maintainers; [ pjones ];