2023-06-01 21:11:18 +00:00
|
|
|
{ lib
|
2023-06-08 05:41:29 +00:00
|
|
|
, buildPackages
|
2023-06-02 01:48:29 +00:00
|
|
|
, cmake
|
2023-06-01 21:11:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, jellyfin-media-player
|
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
, libXrandr
|
|
|
|
, libvdpau
|
|
|
|
, mpv
|
2023-06-02 01:48:29 +00:00
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
2023-06-01 21:11:18 +00:00
|
|
|
, qt6
|
|
|
|
, SDL2
|
|
|
|
, stdenv
|
|
|
|
}:
|
2023-06-02 01:48:29 +00:00
|
|
|
(jellyfin-media-player.overrideAttrs (upstream: {
|
2023-06-01 21:11:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jellyfin";
|
|
|
|
repo = "jellyfin-media-player";
|
|
|
|
rev = "qt6";
|
2023-06-25 22:04:38 +00:00
|
|
|
hash = "sha256-CXuK6PLGOiBDbnLqXcr5sUtQmXksMc6X6GKVMEzmu30=";
|
2023-06-01 21:11:18 +00:00
|
|
|
};
|
|
|
|
# nixos ships two patches:
|
2023-06-02 01:48:29 +00:00
|
|
|
# - the first fixes "web paths" and has *mostly* been upstreamed (so skip and manually tweak a bit)
|
2023-06-01 21:11:18 +00:00
|
|
|
# - the second disables auto-update notifications (keep)
|
2023-06-02 01:48:29 +00:00
|
|
|
patches = (builtins.tail upstream.patches) ++ [
|
|
|
|
./0001-fix-web-path.patch
|
2023-06-25 22:04:38 +00:00
|
|
|
# ./0002-qt6-build-fixes.patch
|
2023-06-08 05:41:29 +00:00
|
|
|
# ./0003-qt6-components-webengine.patch
|
2023-06-02 01:48:29 +00:00
|
|
|
];
|
2023-06-01 21:11:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
libGL
|
|
|
|
libX11
|
|
|
|
libXrandr
|
|
|
|
libvdpau
|
|
|
|
mpv
|
|
|
|
qt6.qtbase
|
|
|
|
qt6.qtwebchannel
|
|
|
|
qt6.qtwebengine
|
|
|
|
# qtx11extras
|
2023-06-08 05:41:29 +00:00
|
|
|
qt6.qt5compat #< new
|
2023-06-01 21:11:18 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
qt6.qtwayland
|
|
|
|
];
|
|
|
|
|
2023-06-02 01:48:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
2023-06-08 05:41:29 +00:00
|
|
|
qt6.wrapQtAppsHook #< new: libsForQt5.callPackage implicitly adds the qt5 wrapQtAppsHook
|
2023-06-02 01:48:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DQTROOT=${qt6.qtbase}"
|
|
|
|
"-GNinja"
|
2023-06-08 05:41:29 +00:00
|
|
|
# "-DQT_DEBUG_FIND_PACKAGE=ON"
|
|
|
|
# "--debug-find-pkg=Qt6WebEngineQuick"
|
2023-06-02 01:48:29 +00:00
|
|
|
];
|
|
|
|
|
2023-06-01 21:11:18 +00:00
|
|
|
meta = upstream.meta // {
|
|
|
|
platforms = upstream.meta.platforms ++ [ "aarch64-linux" ];
|
|
|
|
};
|
2023-06-02 01:48:29 +00:00
|
|
|
}))
|