2023-07-12 22:51:13 +02:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtquickcontrols2
|
|
|
|
, qtwebsockets
|
|
|
|
, qtmultimedia
|
|
|
|
, gst_all_1
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
2023-10-17 04:18:29 +02:00
|
|
|
, libvlc
|
2023-07-12 22:51:13 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "anilibria-winmaclinux";
|
2023-11-28 20:29:02 +01:00
|
|
|
version = "1.2.12";
|
2023-07-12 22:51:13 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anilibria";
|
|
|
|
repo = "anilibria-winmaclinux";
|
|
|
|
rev = version;
|
2023-11-28 20:29:02 +01:00
|
|
|
sha256 = "sha256-J9MBnHrVnDaJ8Ykf/n8OkWKbK/JfMxorH9E+mKe3T8k=";
|
2023-07-12 22:51:13 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/src";
|
|
|
|
|
|
|
|
qmakeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
patches = [
|
2023-10-06 21:35:49 +02:00
|
|
|
./0001-fix-installation-paths.patch
|
2023-07-12 22:51:13 +02:00
|
|
|
./0002-disable-version-check.patch
|
2023-10-17 04:18:29 +02:00
|
|
|
./0003-build-with-vlc.patch
|
2023-07-12 22:51:13 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace AniLibria.pro \
|
2023-10-17 04:18:29 +02:00
|
|
|
--replace "\$\$PREFIX" '${placeholder "out"}' \
|
|
|
|
--replace '@VLC_PATH@' '${libvlc}/include'
|
2023-07-12 22:51:13 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
qtWrapperArgs = [
|
|
|
|
"--prefix GST_PLUGIN_PATH : ${(with gst_all_1; lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-base
|
|
|
|
gst-libav
|
|
|
|
gstreamer
|
|
|
|
])}"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
copyDesktopItems
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtquickcontrols2
|
|
|
|
qtwebsockets
|
|
|
|
qtmultimedia
|
2023-10-17 04:18:29 +02:00
|
|
|
libvlc
|
2023-07-12 22:51:13 +02:00
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-base
|
|
|
|
gst-libav
|
|
|
|
gstreamer
|
|
|
|
]);
|
|
|
|
|
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem (rec {
|
|
|
|
name = "AniLibria";
|
|
|
|
desktopName = name;
|
|
|
|
icon = "anilibria";
|
|
|
|
comment = meta.description;
|
|
|
|
genericName = "AniLibria desktop client";
|
|
|
|
categories = [ "Qt" "AudioVideo" "Player" ];
|
|
|
|
keywords = [ "anime" ];
|
|
|
|
exec = name;
|
|
|
|
terminal = false;
|
|
|
|
}))
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/anilibria/anilibria-winmaclinux";
|
|
|
|
description = "AniLibria cross platform desktop client";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ _3JlOy-PYCCKUi ];
|
|
|
|
inherit (qtbase.meta) platforms;
|
|
|
|
mainProgram = "AniLibria";
|
|
|
|
};
|
|
|
|
}
|