Skip to content

Commit

Permalink
pilipalax: init at 1.0.22-unstable-2024-11-06
Browse files Browse the repository at this point in the history
  • Loading branch information
aucub committed Dec 5, 2024
1 parent 7cb3aa3 commit b4faf6c
Show file tree
Hide file tree
Showing 2 changed files with 2,495 additions and 0 deletions.
126 changes: 126 additions & 0 deletions pkgs/by-name/pi/pilipalax/package.nix
Original file line number Diff line number Diff line change
@@ -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,
}:
flutter324.buildFlutterApplication rec {
pname = "pilipalax";
version = "1.0.22-unstable-2024-11-06";

src = fetchFromGitHub {
owner = "orz12";
repo = "PiliPalaX";
rev = "bf4cebd19dd12b9a24e72a3224d87785eee3d094";
hash = "sha256-/mKBr2NV5c9xPtCTVuAw9ipWKFcrJ2RsCKcssQkUpBs=";
};

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 = {
auto_orientation = "sha256-0QOEW8+0PpBIELmzilZ8+z7ozNRxKgI0BzuBS8c1Fng=";
canvas_danmaku = "sha256-ljOODwuUYG4oaUpHLwKmM8Vkjn9xSHpEdhdzJX+a+r0=";
media_kit = "sha256-yNWu5BDooBhAZ3GeS1pvfNCimpTn3zKkmgCYarrMhxo=";
media_kit_video = "sha256-yNWu5BDooBhAZ3GeS1pvfNCimpTn3zKkmgCYarrMhxo=";
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"
'';

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;
};
}
Loading

0 comments on commit b4faf6c

Please sign in to comment.