depot/third_party/nixpkgs/pkgs/applications/video/haruna/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

77 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitLab
, breeze-icons
, breeze
, cmake
, extra-cmake-modules
, ffmpeg-headless
, kconfig
, kcoreaddons
, kfilemetadata
, ki18n
, kiconthemes
, kio
, kirigami
, kxmlgui
, kdoctools
, mpvqt
, pkg-config
, wrapQtAppsHook
, qqc2-desktop-style
, qtbase
, yt-dlp
}:
stdenv.mkDerivation rec {
pname = "haruna";
version = "1.1.2";
src = fetchFromGitLab {
owner = "multimedia";
repo = "haruna";
rev = "v${version}";
hash = "sha256-PjELW0evn53gIbScrM2bYEpb9U/TE/lOCD2DiJ1aodo=";
domain = "invent.kde.org";
};
postPatch = ''
substituteInPlace src/application.cpp \
--replace '"yt-dlp"' '"${lib.getExe yt-dlp}"'
'';
buildInputs = [
breeze-icons
breeze
qqc2-desktop-style
yt-dlp
ffmpeg-headless
kconfig
kcoreaddons
kfilemetadata
ki18n
kiconthemes
kio
kirigami
kxmlgui
kdoctools
mpvqt
qtbase
];
nativeBuildInputs = [
cmake
extra-cmake-modules
pkg-config
wrapQtAppsHook
];
meta = with lib; {
homepage = "https://invent.kde.org/multimedia/haruna";
description = "Open source video player built with Qt/QML and libmpv";
license = with licenses; [ bsd3 cc-by-40 cc-by-sa-40 cc0 gpl2Plus gpl3Plus wtfpl ];
maintainers = with maintainers; [ jojosch kashw2 ];
mainProgram = "haruna";
};
}