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