pilipalax: init at 1.0.22-beta.12+174 (#360265)

This commit is contained in:
Aleksana 2024-12-07 21:27:16 +08:00 committed by GitHub
commit 9ef3e72c29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2463 additions and 0 deletions

View File

@ -0,0 +1,126 @@
{
autoPatchelfHook,
lib,
fetchFromGitHub,
flutter324,
mpv,
libass,
ffmpeg,
libplacebo,
libunwind,
shaderc,
vulkan-loader,
lcms,
libdovi,
libdvdnav,
libdvdread,
mujs,
libbluray,
lua,
rubberband,
libuchardet,
zimg,
alsa-lib,
openal,
pipewire,
libpulseaudio,
libcaca,
libdrm,
mesa,
libXScrnSaver,
nv-codec-headers-11,
libXpresent,
libva,
libvdpau,
pkg-config,
makeDesktopItem,
wrapGAppsHook3,
copyDesktopItems,
xdg-user-dirs,
}:
flutter324.buildFlutterApplication rec {
pname = "pilipalax";
version = "1.0.22-beta.12+174";
src = fetchFromGitHub {
owner = "orz12";
repo = "PiliPalaX";
tag = version;
hash = "sha256-Qjqyg9y5R70hODGfVClS505dJwexL0BbUm6lXSHzhJs=";
};
pubspecLock = lib.importJSON ./pubspec.lock.json;
desktopItems = [
(makeDesktopItem {
name = "pilipalax";
exec = "pilipala";
icon = "pilipalax";
genericName = "PiliPalaX";
desktopName = "PiliPalaX";
})
];
nativeBuildInputs = [
pkg-config
autoPatchelfHook
wrapGAppsHook3
copyDesktopItems
];
buildInputs = [
mpv
libass
ffmpeg
libplacebo
libunwind
shaderc
vulkan-loader
lcms
libdovi
libdvdnav
libdvdread
mujs
libbluray
lua
rubberband
libuchardet
zimg
alsa-lib
openal
pipewire
libpulseaudio
libcaca
libdrm
mesa
libXScrnSaver
libXpresent
nv-codec-headers-11
libva
libvdpau
];
gitHashes = {
ns_danmaku = "sha256-OHlKscybKSLS1Jd1S99rCjHMZfuJXjkQB8U2Tx5iWeA=";
auto_orientation = "sha256-0QOEW8+0PpBIELmzilZ8+z7ozNRxKgI0BzuBS8c1Fng=";
mime = "sha256-tqFOH85YTyxtp0LbknScx66CvN4SwYKU6YxYQMNeVs4=";
};
postInstall = ''
install -Dm644 ./assets/images/logo/logo_android_2.png $out/share/pixmaps/pilipalax.png
'';
extraWrapProgramArgs = ''
--prefix LD_LIBRARY_PATH : "$out/app/${pname}/lib" \
--prefix PATH : ${lib.makeBinPath [ xdg-user-dirs ]}
'';
meta = {
description = "Third-party BiliBili client developed with Flutter";
homepage = "https://github.com/orz12/PiliPalaX";
mainProgram = "pilipala";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ aucub ];
platforms = lib.platforms.linux;
};
}

File diff suppressed because it is too large Load Diff