diff options
author | Tobias Mayer <tobim@fastmail.fm> | 2023-08-27 07:56:50 +0200 |
---|---|---|
committer | Tobias Mayer <tobim@fastmail.fm> | 2023-09-04 10:19:00 +0200 |
commit | 4b919a5b81789f7f5a49bf83d05174b75b719742 (patch) | |
tree | 652d5aa44e2795bf145d34ed692b44f5d5ad0774 | |
parent | fd3acad64326a3b1ab9d7d07550b5ca5beaf848a (diff) |
gerbera: fix build with fmt-10.1
-rw-r--r-- | pkgs/servers/gerbera/default.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/servers/gerbera/default.nix b/pkgs/servers/gerbera/default.nix index b62237866b3f2..9cd7cadc09eec 100644 --- a/pkgs/servers/gerbera/default.nix +++ b/pkgs/servers/gerbera/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake , pkg-config , nixosTests @@ -74,6 +75,16 @@ stdenv.mkDerivation rec { sha256 = "sha256-j5J0u0zIjHY2kP5P8IzN2h+QQSCwsel/iTspad6V48s="; }; + patches = [ + # Can be removed on the next bump, see: + # https://github.com/gerbera/gerbera/pull/2840. + (fetchpatch { + name = "gerbera-fmt10.patch"; + url = "https://github.com/gerbera/gerbera/commit/37957aac0aea776e6f843af2358916f81056a405.patch"; + hash = "sha256-U7dyFGEbelVZeHYX/4fLOC0k+9pUKZ8qP/LIVXWCMcU="; + }) + ]; + postPatch = lib.optionalString enableMysql '' substituteInPlace cmake/FindMySQL.cmake \ --replace /usr/include/mysql ${lib.getDev libmysqlclient}/include/mariadb \ |