nixpkgs/pkgs/applications/video/haruna/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.3 KiB
Nix
Raw Normal View History

2021-04-16 09:20:14 +02:00
{ lib
2021-09-30 04:41:20 +02:00
, fetchFromGitLab
2021-04-16 09:20:14 +02:00
, mkDerivation
, breeze-icons
, breeze-qt5
, cmake
, extra-cmake-modules
2021-09-30 04:41:20 +02:00
, ffmpeg-full
2021-04-16 09:20:14 +02:00
, kconfig
, kcoreaddons
, kfilemetadata
, ki18n
, kiconthemes
, kio
, kirigami2
, kxmlgui
2022-04-23 18:11:36 +02:00
, kdoctools
2021-04-16 09:20:14 +02:00
, mpv
, pkg-config
2022-04-23 18:11:36 +02:00
, wrapQtAppsHook
2021-04-16 09:20:14 +02:00
, qqc2-desktop-style
, qtbase
, qtquickcontrols2
2022-04-23 18:11:36 +02:00
, yt-dlp
2021-04-16 09:20:14 +02:00
}:
mkDerivation rec {
pname = "haruna";
2022-08-26 05:30:41 +02:00
version = "0.9.1";
2021-04-16 09:20:14 +02:00
2021-09-30 04:41:20 +02:00
src = fetchFromGitLab {
owner = "multimedia";
2021-04-16 09:20:14 +02:00
repo = "haruna";
2021-09-30 04:41:20 +02:00
rev = "v${version}";
2022-08-26 05:30:41 +02:00
hash = "sha256-pkskrzpKDsMg7DOC335zXknEIKh9Ku2NgyeinawQtiY=";
2021-09-30 04:41:20 +02:00
domain = "invent.kde.org";
2021-04-16 09:20:14 +02:00
};
2022-08-26 05:30:41 +02:00
postPatch = ''
substituteInPlace src/application.cpp \
--replace '"yt-dlp"' '"${lib.getExe yt-dlp}"'
'';
2021-04-16 09:20:14 +02:00
buildInputs = [
breeze-icons
breeze-qt5
2022-04-23 18:11:36 +02:00
qqc2-desktop-style
yt-dlp
2021-09-30 04:41:20 +02:00
ffmpeg-full
2021-04-16 09:20:14 +02:00
kconfig
kcoreaddons
kfilemetadata
ki18n
kiconthemes
kio
kirigami2
kxmlgui
2022-04-23 18:11:36 +02:00
kdoctools
2021-04-16 09:20:14 +02:00
mpv
qtbase
qtquickcontrols2
];
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
2022-04-23 18:11:36 +02:00
wrapQtAppsHook
2021-04-16 09:20:14 +02:00
];
meta = with lib; {
2022-04-23 18:11:36 +02:00
homepage = "https://invent.kde.org/multimedia/haruna";
2021-04-16 09:20:14 +02:00
description = "Open source video player built with Qt/QML and libmpv";
2022-04-23 18:11:36 +02:00
license = with licenses; [ bsd3 cc-by-40 cc-by-sa-40 cc0 gpl2Plus gpl3Plus wtfpl ];
2021-04-16 09:20:14 +02:00
maintainers = with maintainers; [ jojosch ];
};
}