mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-09 03:56:06 +01:00
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
10 lines
428 B
Bash
Executable file
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'
|