Last active
October 19, 2022 05:47
-
-
Save luochen1990/3941c688ea656581bfcb30296d2a8650 to your computer and use it in GitHub Desktop.
(wip) netease popo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NOTE: not working yet, need debuging | |
{pkgs ? import <nixpkgs> {}, ...}: | |
pkgs.stdenv.mkDerivation rec { | |
pname = "popo"; | |
version = "3.56.1"; | |
src = pkgs.fetchurl { | |
url = "https://popo.netease.com/file/popolinux/popo_${version}_amd64_ubuntu.deb"; | |
sha256 = "sha256-8+8FFEk2lcQAbn4IFtnkr7njeAMCaL3ficEjjDjIgAY="; | |
}; | |
nativeBuildInputs = with pkgs; [ | |
qt5.wrapQtAppsHook | |
autoPatchelfHook | |
dpkg | |
]; | |
buildInputs = with pkgs; [ | |
qt5.qtbase | |
qt5.qtdeclarative | |
libogg | |
ncurses | |
libvorbis | |
protobuf | |
x265 | |
lua | |
speex | |
libtheora | |
pulseaudio | |
libcaca | |
libjack2 | |
wayland-scanner | |
xorg.libXdamage | |
xorg.libXrandr | |
mesa | |
gnome2.pango | |
cairo | |
at-spi2-core | |
cups | |
xorg.libxshmfence | |
libcef | |
alsa-lib | |
openssl | |
zlib | |
]; | |
sourceRoot = "."; | |
unpackPhase = '' | |
dpkg -x $src ./tmp | |
''; | |
installPhase = '' | |
mkdir -p $out/lib | |
mkdir -p $out/bin/3.56.1.12190 | |
#cp -r ./tmp/opt/apps/popo/files/* $out/bin/ | |
#find ./tmp/opt/apps/popo/files/3.56.1.12190/ -name 'libqt*.so' -exec rm {} \; | |
#find ./tmp/opt/apps/popo/files/3.56.1.12190/ -name '*.so' -exec cp {} $out/lib \; | |
#cp ./tmp/opt/apps/popo/files/3.56.1.12190/*.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/envlib.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libGLESv2.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libplay_compsturn_center.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libquazip1-qt5.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libcalendar_form.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libnemp_sdk.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libplayer.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libvlccore.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libcalendar_module.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libnipc_server_engine.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libpopo_pc_utils.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libvlc.so $out/lib/ | |
#cp ./tmp/opt/apps/popo/files/3.56.1.12190/libcef.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libnipc_server.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libpopo_screenshot.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libEGL.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libold_water_mark.so $out/lib/ | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/libqt_components.so $out/lib/ | |
#cp ./tmp/opt/apps/popo/files/3.56.1.12190/popo $out/bin/3.56.1.12190/popo | |
#cp ./tmp/opt/apps/popo/files/Elevator.sh $out/bin/ | |
cp ./tmp/opt/apps/popo/files/Elevator.sh $out/bin/popo | |
cp ./tmp/opt/apps/popo/files/3.56.1.12190/popo $out/bin/3.56.1.12190/popo | |
''; | |
meta = { | |
homepage = "https://popo.netease.com/zh"; | |
description = "netease popo"; | |
platforms = pkgs.lib.platforms.linux; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment