nix-on-droid/scripts/local-deploy.sh
Shelvacu c5324bcad0 Grab proot from bootstrap zip rather than including its nix path directly.
This means that the cachix substituter (or already having the package in your nix store somehow) is no longer required to build.

This required reworking the deploy script. As a bonus you can now omit the second argument and it will tell you what it would have copied instead of copying anything.

This is fixes one source of impurity, but for now flake builds will still require the --impure flag
2024-09-09 13:41:46 -07:00

10 lines
428 B
Bash
Executable file

#!/usr/bin/env bash
set -xevo pipefail
tmp=`mktemp -d`/n-o-d
mkdir $tmp
cd "$(dirname "$0")"/..
git -C . archive --format=tar.gz --prefix n-o-d/ HEAD > $tmp/archive.tar.gz
ARCHES=x86_64 nix run .#deploy -- file:///data/local/tmp/n-o-d/archive.tar.gz --rsync-target $tmp/
adb shell 'rm -rf /data/local/tmp/n-o-d'
adb push $tmp /data/local/tmp/
adb shell 'cd /data/local/tmp/n-o-d && tar xzof archive.tar.gz && mv n-o-d unpacked'