nixpkgs/pkgs/applications/video/haruna/default.nix
K900 96294a1f8f haruna: don't use mkKdeDerivation
It doesn't use any of the features anyway, except by accident
2024-04-29 08:47:47 +03:00

78 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.0.2";
src = fetchFromGitLab {
owner = "multimedia";
repo = "haruna";
rev = "v${version}";
hash = "sha256-L/mTFPJPHl8A6FqkWUwICh+Yl4uIE5KnTkZVnC4kCZ8=";
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";
};
}