leleliu008 / ppkg-formula-repository-official-core

official formula repository for ppkg
Apache License 2.0
1 stars 0 forks source link

Request: simplex-chat cli #6

Open Azathothas opened 3 days ago

Azathothas commented 3 days ago

Recently I got a request to add simplex-chat cli at: https://github.com/Azathothas/Toolpacks/issues/34

The dockerfile for building it: https://github.com/simplex-chat/simplex-chat/blob/2abee7edf8cd1c975c9336aa7885f6f818b88d7e/Dockerfile

However, mine fails when I try to build it. I have no experience in building Haskell apps. I would highly appreciate it if you could take a look, Thanks!

leleliu008 commented 3 days ago

I will look into it.

leleliu008 commented 3 days ago

by the way, I updated the ndk-pkg and it's formula repository yesterday, but I cann't push the docker image to docker.io due to the chinese government has blocked it recently, I do not plan to update the fpliu/ndk-pkg containner image any more. if you use it , please do ndk-pkg upgrade-self, otherwize you might face problems.

leleliu008 commented 2 days ago

you do not need to run ndk-pkg upgrade-self when building your docker image. because you fetch from github, it's always the latest.

I found you fetch from dev branch https://raw.githubusercontent.com/leleliu008/ndk-pkg/dev/ndk-pkg , master is recommanded.

you do not need to run ndk-pkg formula-repo-sync "official-core" when building your docker image, ndk-pkg update already do it for you.

you do not need to install glibc in alpine linux, ndk-pkg setup already do it for you. https://github.com/leleliu008/ndk-pkg/blob/master/ndk-pkg#L8552C1-L8555

leleliu008 commented 2 days ago
wget https://raw.githubusercontent.com/leleliu008/ndk-pkg/master/ndk-pkg
chmod +x ndk-pkg
./ndk-pkg setup
./ndk-pkg update
./ndk-pkg install

ndk-pkg setup is mainly doing the following things:

install tar, xz, g++, gcompat, linux-headers commands via your system's package manager

install uppm to ~/.ndk-pkg/core

install other essential tools (listed below) that are used by this shell script via uppm

GNU Bash GNU CoreUtils GNU FindUtils GNU awk GNU sed GNU grep BSD tar patchelf sysinfo tree curl git xxd fzf bat jq yq d2

Azathothas commented 2 days ago

I haven't checked ndk-pkg in a while and when I wrote that dockerfile, all those steps were necessary. ndk-pkg also required glibc and didn't work on alpine out of the box. It's good to see that it now support most of the things by itself. I have updated the dockerfile to install from master & disabled the glibc part. Thank you for the suggestion.