gerbera: 1.12.1 -> 2.3.0 (#343086)
This commit is contained in:
@@ -358,6 +358,8 @@
|
||||
|
||||
- `programs.fzf.keybindings` now supports the fish shell.
|
||||
|
||||
- `gerbera` now has wavpack support.
|
||||
|
||||
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
|
||||
|
||||
```{=include=} sections
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
cmake,
|
||||
pkg-config,
|
||||
nixosTests,
|
||||
@@ -14,6 +13,7 @@
|
||||
spdlog,
|
||||
sqlite,
|
||||
zlib,
|
||||
fmt_11,
|
||||
# options
|
||||
enableMysql ? false,
|
||||
libmysqlclient,
|
||||
@@ -38,6 +38,8 @@
|
||||
ffmpegthumbnailer,
|
||||
enableInotifyTools ? true,
|
||||
inotify-tools,
|
||||
wavpack,
|
||||
enableWavPack ? false,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -107,37 +109,38 @@ let
|
||||
enable = enableTaglib;
|
||||
packages = [ taglib ];
|
||||
}
|
||||
{
|
||||
name = "WAVPACK";
|
||||
enable = enableWavPack;
|
||||
packages = [ wavpack ];
|
||||
}
|
||||
];
|
||||
|
||||
inherit (lib) flatten optionals;
|
||||
inherit (lib) flatten;
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gerbera";
|
||||
version = "1.12.1";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "gerbera";
|
||||
owner = "gerbera";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-j5J0u0zIjHY2kP5P8IzN2h+QQSCwsel/iTspad6V48s=";
|
||||
sha256 = "sha256-SUMXnVCmrxoEbKKuzh+b7uvIanxilvpDDiH5ihjAm38=";
|
||||
};
|
||||
|
||||
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 \
|
||||
--replace /usr/lib/mysql ${lib.getLib libmysqlclient}/lib/mariadb
|
||||
'';
|
||||
postPatch =
|
||||
let
|
||||
mysqlPatch = lib.optionalString enableMysql ''
|
||||
substituteInPlace cmake/FindMySQL.cmake \
|
||||
--replace /usr/include/mysql ${lib.getDev libmysqlclient}/include/mariadb \
|
||||
--replace /usr/lib/mysql ${lib.getLib libmysqlclient}/lib/mariadb
|
||||
'';
|
||||
in
|
||||
''
|
||||
${mysqlPatch}
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
# systemd service will be generated alongside the service
|
||||
@@ -157,6 +160,7 @@ stdenv.mkDerivation rec {
|
||||
spdlog
|
||||
sqlite
|
||||
zlib
|
||||
fmt_11
|
||||
] ++ flatten (builtins.catAttrs "packages" (builtins.filter (e: e.enable) options));
|
||||
|
||||
passthru.tests = { inherit (nixosTests) mediatomb; };
|
||||
@@ -164,7 +168,7 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.gerbera.io/";
|
||||
changelog = "https://github.com/gerbera/gerbera/releases/tag/v${version}";
|
||||
description = "UPnP Media Server for 2020";
|
||||
description = "UPnP Media Server for 2024";
|
||||
longDescription = ''
|
||||
Gerbera is a Mediatomb fork.
|
||||
It allows to stream your digital media through your home network and consume it on all kinds
|
||||
|
||||
Reference in New Issue
Block a user