Add command to initialize lineageos repo

This commit is contained in:
Waldemar Tomme 2025-01-08 23:08:42 +01:00
parent aaa5fbcdc0
commit 05c43567d7

View File

@ -280,6 +280,16 @@
libgcc # crtbeginS.o libgcc # crtbeginS.o
iconv # ??? - i put this here and by the time i went back to remove unecessary packages i forgot why iconv # ??? - i put this here and by the time i went back to remove unecessary packages i forgot why
iconv.dev # sys/types.h iconv.dev # sys/types.h
(writeShellScriptBin "init-repositories" ''
if [[ ! -d ".repos/lineageos" ]]; then
mkdir -p ".repos/lineageos"
pushd .repos/lineageos
repo init -u https://github.com/LineageOS/android.git -b lineage-22.1 --git-lfs --no-clone-bundle
repo sync
popd
fi
'')
]; ];
runScript = "zsh"; # personal preference, you could set this to bash instead if you want runScript = "zsh"; # personal preference, you could set this to bash instead if you want
profile = '' profile = ''