!UUYziobKGGxpovWyAN:nixos.org

Robotnix

225 Members
Build Android (AOSP) using Nix | https://github.com/nix-community/robotnix68 Servers

Load older messages


SenderMessageTime
2 Jan 2025
@atemu12:matrix.orgAtemuUsing a release script is preferred though I think14:52:07
@countoren:matrix.orgcountoren

I tried something like:

$ nix build --impure --option extra-sendbox-paths /keys=./keys                                             

but I am not sure I am doing correctly

14:55:31
@atemu12:matrix.orgAtemuAre you a trusted user?14:55:50
@countoren:matrix.orgcountorenI should be 14:56:04
@atemu12:matrix.orgAtemu Try to access that directory from within the sandbox via a e.g. a simple runCommand to verify 14:56:11
@countoren:matrix.orgcountorenmaybe I will try to switch out from flake to be able to change default.nix14:56:59
@atemu12:matrix.orgAtemu You should be able to modify it with flakes too; they're shit but not that shit 14:57:36
@countoren:matrix.orgcountorenwell flake is downloading the source (of robotnix) to the nix store14:58:31
@countoren:matrix.orgcountorenwell I mean to clone the repo. 14:58:52
@countoren:matrix.orgcountorenin this machine that i switched to I just used the flake without cloning14:59:11
@atemu12:matrix.orgAtemuAh I see15:01:08
@countoren:matrix.orgcountoren* in this machine that i switched to I just use the flake without cloning15:01:14
@atemu12:matrix.orgAtemuCloning and using the local flake should be easy enough15:01:19
@atemu12:matrix.orgAtemuAhaahaa wait, this is flakes, I have no idea whether that's simple15:01:37
@atemu12:matrix.orgAtemuRight15:01:41
@countoren:matrix.orgcountorenyes true, tho with my experience it still might deffer between flake to nix-build I had some differences before with file path parsing between the 215:02:37
@countoren:matrix.orgcountorenbut it was long ago it might be fine now15:02:57
@atemu12:matrix.orgAtemuYou should be able to do the simple sanity check regardless of flakes though15:05:08
@atemu12:matrix.orgAtemuIt doesn't depend on robotnix15:05:25
@countoren:matrix.orgcountorenanyway trying to understand it better is KEYSDIR is env var expected by the android build tool?15:05:53
@atemu12:matrix.orgAtemuCome again?15:09:02
@countoren:matrix.orgcountoren

o it talking about it being directory. ```

Missing KEYSDIR directory, did you use "--option extra-sandbox-paths /keys=..." ?


15:10:22
@countoren:matrix.orgcountoren *

o it talking about it being directory. ```

Missing KEYSDIR directory, did you use "--option extra-sandbox-paths /keys=..." ?


15:10:44
@atemu12:matrix.orgAtemuCheck whether that directory exists and is readable inside the sandbox15:10:53
@atemu12:matrix.orgAtemuYou can do that with a simple runCommand15:11:11
@atemu12:matrix.orgAtemuTo skip all the complexity of robotnix for troubleshooting15:11:33
@countoren:matrix.orgcountorenyou mean nix shell --pure ? as well?15:14:46
@countoren:matrix.orgcountoren* you mean nix shell --impure ? as well?15:15:56
@atemu12:matrix.orgAtemuHowever you prefer to eval Nix code15:17:57
@atemu12:matrix.orgAtemu I'd use a repl or --expr but whatever you like 15:18:15

Show newer messages


Back to Room ListRoom Version: 6