mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-12-03 15:41:04 +01:00
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
This commit is contained in:
parent
248cc08061
commit
c5324bcad0
12 changed files with 279 additions and 122 deletions
10
scripts/local-deploy.sh
Executable file
10
scripts/local-deploy.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue