remove .pmbootstrap dir from shell nix

This commit is contained in:
MeexReay 2025-05-19 02:02:31 +03:00
parent 1c98fae513
commit 76aeecd439
2 changed files with 26 additions and 26 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
.pmbootstrap/

View File

@ -11,38 +11,39 @@ pkgs.mkShell {
]; ];
shellHook = '' shellHook = ''
export PMWORK=$PWD/.pmbootstrap # export PMWORK=$PWD/.pmbootstrap
export PMAPORTS=$PMWORK/cache_git/pmaports # export PMAPORTS=$PMWORK/cache_git/pmaports
mkdir -p $PMWORK # mkdir -p $PMWORK
if [ ! -d $PMAPORTS ]; then # if [ ! -d $PMAPORTS ]; then
mkdir -p $PMWORK/cache_git # mkdir -p $PMWORK/cache_git
git clone https://gitlab.postmarketos.org/postmarketOS/pmaports.git $PMAPORTS # git clone https://gitlab.postmarketos.org/postmarketOS/pmaports.git $PMAPORTS
fi # fi
source extract-paths.sh
if [ ! -L $PMAPORTS/device/testing/linux-xiaomi-angelican ]; then if [ ! -L $PMAPORTS/device/testing/linux-xiaomi-angelican ]; then
ln -s $PWD/linux-xiaomi-angelican $PMAPORTS/device/testing ln -s $PWD/linux-xiaomi-angelican $PMAPORTS/device/testing
fi fi
if [ ! -L $PMAPORTS/device/testing/device-xiaomi-angelican ]; then if [ ! -L $PMAPORTS/device/testing/device-xiaomi-angelican ]; then
ln -s $PWD/device-xiaomi-angelican $PMAPORTS/device/testing ln -s $PWD/device-xiaomi-angelican $PMAPORTS/device/testing
fi fi
if [ ! -f $PMWORK/pmbootstrap.conf ]; then # if [ ! -f $PMWORK/pmbootstrap.conf ]; then
cat > $PMWORK/pmbootstrap.conf <<EOF # cat > $PMWORK/pmbootstrap.conf <<EOF
[pmbootstrap] # [pmbootstrap]
device = xiaomi-angelican # device = xiaomi-angelican
hostname = xiaomi-angelican # hostname = xiaomi-angelican
systemd = never # systemd = never
[providers] # [providers]
[mirrors] # [mirrors]
EOF # EOF
fi # fi
if [ ! -f $PMWORK/version ]; then # if [ ! -f $PMWORK/version ]; then
echo "8" > $PMWORK/version # echo "8" > $PMWORK/version
fi # fi
alias pmbootstrap="\ # alias pmbootstrap="\
\pmbootstrap \ # \pmbootstrap \
--aports $PMAPORTS \ # --aports $PMAPORTS \
--work $PMWORK \ # --work $PMWORK \
" # "
''; '';
} }