From 05c43567d7e6210d0d0e8881f5885952cd094a32 Mon Sep 17 00:00:00 2001 From: Waldemar Tomme Date: Wed, 8 Jan 2025 23:08:42 +0100 Subject: [PATCH] Add command to initialize lineageos repo --- dev/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev/default.nix b/dev/default.nix index 8c89484..0fc97d5 100644 --- a/dev/default.nix +++ b/dev/default.nix @@ -280,6 +280,16 @@ libgcc # crtbeginS.o iconv # ??? - i put this here and by the time i went back to remove unecessary packages i forgot why 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 profile = ''