Add a build script to patch paths and inject proot

This commit is contained in:
Alexander Sosedkin 2019-12-30 02:41:27 +01:00
parent c399757156
commit 4018b987bf
4 changed files with 76 additions and 3 deletions

View file

@ -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}}";
};
};