| 2 Jan 2025 |
Atemu | Using a release script is preferred though I think | 14:52:07 |
countoren | 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 |
Atemu | Are you a trusted user? | 14:55:50 |
countoren | I should be | 14:56:04 |
Atemu | Try to access that directory from within the sandbox via a e.g. a simple runCommand to verify | 14:56:11 |
countoren | maybe I will try to switch out from flake to be able to change default.nix | 14:56:59 |
Atemu | You should be able to modify it with flakes too; they're shit but not that shit | 14:57:36 |
countoren | well flake is downloading the source (of robotnix) to the nix store | 14:58:31 |
countoren | well I mean to clone the repo. | 14:58:52 |
countoren | in this machine that i switched to I just used the flake without cloning | 14:59:11 |
Atemu | Ah I see | 15:01:08 |
countoren | * in this machine that i switched to I just use the flake without cloning | 15:01:14 |
Atemu | Cloning and using the local flake should be easy enough | 15:01:19 |
Atemu | Ahaahaa wait, this is flakes, I have no idea whether that's simple | 15:01:37 |
Atemu | Right | 15:01:41 |
countoren | yes 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 2 | 15:02:37 |
countoren | but it was long ago it might be fine now | 15:02:57 |
Atemu | You should be able to do the simple sanity check regardless of flakes though | 15:05:08 |
Atemu | It doesn't depend on robotnix | 15:05:25 |
countoren | anyway trying to understand it better is KEYSDIR is env var expected by the android build tool? | 15:05:53 |
Atemu | Come again? | 15:09:02 |
countoren | o it talking about it being directory. ```
Missing KEYSDIR directory, did you use "--option extra-sandbox-paths /keys=..." ?
| 15:10:22 |
countoren | * o it talking about it being directory. ```
Missing KEYSDIR directory, did you use "--option extra-sandbox-paths /keys=..." ?
| 15:10:44 |
Atemu | Check whether that directory exists and is readable inside the sandbox | 15:10:53 |
Atemu | You can do that with a simple runCommand | 15:11:11 |
Atemu | To skip all the complexity of robotnix for troubleshooting | 15:11:33 |
countoren | you mean nix shell --pure ? as well? | 15:14:46 |
countoren | * you mean nix shell --impure ? as well? | 15:15:56 |
Atemu | However you prefer to eval Nix code | 15:17:57 |
Atemu | I'd use a repl or --expr but whatever you like | 15:18:15 |