mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
Add a build script to patch paths and inject proot
This commit is contained in:
parent
c399757156
commit
4018b987bf
4 changed files with 76 additions and 3 deletions
|
|
@ -84,9 +84,12 @@ in
|
|||
inherit login loginInner;
|
||||
|
||||
prootStatic =
|
||||
if config.build.arch == "aarch64"
|
||||
then "/nix/store/r09n7pp4fwhrld2a1k2al6bgdx2qqfaj-proot-termux-unstable-2019-09-05-aarch64-unknown-linux-android"
|
||||
else "/nix/store/ccv4y9ndl1w7ksmwnsr9jm2iwnrrbgcq-proot-termux-unstable-2019-09-05-i686-unknown-linux-android";
|
||||
let crosscompiled_paths = {
|
||||
aarch64 = "/nix/store/r09n7pp4fwhrld2a1k2al6bgdx2qqfaj-proot-termux-unstable-2019-09-05-aarch64-unknown-linux-android";
|
||||
i686 = "/nix/store/4gpm0rmrq0mm69kl3cb1gjslr7ihhp01-proot-termux-unstable-2019-09-05-i686-unknown-linux-android";
|
||||
};
|
||||
in
|
||||
"${crosscompiled_paths.${config.build.arch}}";
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue