mirror of
https://github.com/MeexReay/pmos-xiaomi-angelican.git
synced 2025-06-24 18:42:58 +03:00
remove .pmbootstrap dir from shell nix
This commit is contained in:
parent
1c98fae513
commit
76aeecd439
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
.pmbootstrap/
|
|
51
shell.nix
51
shell.nix
@ -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 \
|
||||||
"
|
# "
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user