2021-04-17 00:35:05 +00:00
|
|
|
{ lib
|
2021-10-01 09:20:50 +00:00
|
|
|
, fetchFromGitLab
|
2021-04-17 00:35:05 +00:00
|
|
|
, mkDerivation
|
|
|
|
, breeze-icons
|
|
|
|
, breeze-qt5
|
|
|
|
, cmake
|
|
|
|
, extra-cmake-modules
|
2024-01-02 11:29:13 +00:00
|
|
|
, ffmpeg-headless
|
2021-04-17 00:35:05 +00:00
|
|
|
, kconfig
|
|
|
|
, kcoreaddons
|
|
|
|
, kfilemetadata
|
|
|
|
, ki18n
|
|
|
|
, kiconthemes
|
|
|
|
, kio
|
|
|
|
, kirigami2
|
|
|
|
, kxmlgui
|
2022-06-26 10:26:21 +00:00
|
|
|
, kdoctools
|
2021-04-17 00:35:05 +00:00
|
|
|
, mpv
|
|
|
|
, pkg-config
|
2022-06-26 10:26:21 +00:00
|
|
|
, wrapQtAppsHook
|
2021-04-17 00:35:05 +00:00
|
|
|
, qqc2-desktop-style
|
|
|
|
, qtbase
|
|
|
|
, qtquickcontrols2
|
2022-06-26 10:26:21 +00:00
|
|
|
, yt-dlp
|
2021-04-17 00:35:05 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "haruna";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.12.3";
|
2021-04-17 00:35:05 +00:00
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "multimedia";
|
2021-04-17 00:35:05 +00:00
|
|
|
repo = "haruna";
|
2021-10-01 09:20:50 +00:00
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-iYf8oTMQ65+6E1dlOj0GU6EezPul6p1GG2CcrcjDUik=";
|
2021-10-01 09:20:50 +00:00
|
|
|
domain = "invent.kde.org";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/application.cpp \
|
|
|
|
--replace '"yt-dlp"' '"${lib.getExe yt-dlp}"'
|
|
|
|
'';
|
|
|
|
|
2021-04-17 00:35:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
breeze-icons
|
|
|
|
breeze-qt5
|
2022-06-26 10:26:21 +00:00
|
|
|
qqc2-desktop-style
|
|
|
|
yt-dlp
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
ffmpeg-headless
|
2021-04-17 00:35:05 +00:00
|
|
|
kconfig
|
|
|
|
kcoreaddons
|
|
|
|
kfilemetadata
|
|
|
|
ki18n
|
|
|
|
kiconthemes
|
|
|
|
kio
|
|
|
|
kirigami2
|
|
|
|
kxmlgui
|
2022-06-26 10:26:21 +00:00
|
|
|
kdoctools
|
2021-04-17 00:35:05 +00:00
|
|
|
mpv
|
|
|
|
qtbase
|
|
|
|
qtquickcontrols2
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
extra-cmake-modules
|
|
|
|
pkg-config
|
2022-06-26 10:26:21 +00:00
|
|
|
wrapQtAppsHook
|
2021-04-17 00:35:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-26 10:26:21 +00:00
|
|
|
homepage = "https://invent.kde.org/multimedia/haruna";
|
2021-04-17 00:35:05 +00:00
|
|
|
description = "Open source video player built with Qt/QML and libmpv";
|
2022-06-26 10:26:21 +00:00
|
|
|
license = with licenses; [ bsd3 cc-by-40 cc-by-sa-40 cc0 gpl2Plus gpl3Plus wtfpl ];
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ jojosch kashw2 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "haruna";
|
2021-04-17 00:35:05 +00:00
|
|
|
};
|
|
|
|
}
|