Nix Flakes | 856 Members | |
| 174 Servers |
| Sender | Message | Time |
|---|---|---|
| 26 Apr 2025 | ||
| 19:59:07 | ||
| 27 Apr 2025 | ||
| 03:22:20 | ||
| 03:22:21 | ||
| 09:51:52 | ||
Hi, I hope to be in the right place (otherwise I'd appreciate a redirect), to ask if anyone ever had to build something with kotlin-native, as I have the problem that my build succeeds when I am running a nix shell with shellHook gradle ... but not when I run nix develop with the same shell hook.I think to have been able to boil the problem down to specific caches being created in ~/ (e.g. ~/.konan), but I cannot get kotlin-native to create the folders elsewhere.TL:DR; did anyone ever try to do s.t. with kotlin-native within the a nix-flake sandbox? | 09:58:08 | |
| You are mixing things up. The pure mode of flakes doesn't work on that level, it is pure evaluation time. | 12:27:49 | |
I might be mixing things up, but I am trying to use the flake in pure mode - however kotlin-native seems to cache things in my home-folder, which in nix develop works because it allows the impurity, but my goal is it to make it pure and to use nix build to build the application. | 12:50:51 | |
oh, you mean sandbox = true? | 13:19:49 | |
| some packages have a hook like this or similar
| 13:20:44 | |
| 28 Apr 2025 | ||
| 12:43:08 | ||
| I have a flake with a What do I need to do in my | 12:48:32 | |
| 14:31:08 | ||
| 18:21:17 | ||
| 29 Apr 2025 | ||
| 01:27:50 | ||
| 01:39:46 | ||
| 02:04:00 | ||
hi dramforever thanks for the reply! Yes, I mean to use the sandboxing-property of nix-flakes as intended. Just to make sure, that I, as a newbie, understand correctly: sandbox=true does not have to specified anywhere for the flake to be in "sandbox-mode", right? | 08:24:37 | |
| okay, thanks for this hint in the right direction - it turns out that I was trying the right thing all along, only that the variable-name changed in one of the versions and therefore it did not work. Thanks ^^ | 08:27:24 | |
| 14:05:00 | ||
| 16:05:15 | ||
| 16:35:34 | ||
| 18:03:45 | ||
| 30 Apr 2025 | ||
Hi, how do I avoid nix develop rebuilding the environment each time? If the shell takes a lot of time to build it is super annoying for it to be done again and again... (atm I have a thing which takes about an hour - I am compiling for ARM 32bit...) | 05:59:53 | |
* Hi, how do I avoid nix develop rebuilding the environment each time? If the shell takes a lot of time to build it is super annoying for it to be done again and again... (atm I have a thing which takes about an hour - I am compiling for ARM 32bit and gcc for that takes quite a while to get built...) | 06:00:16 | |
| I found this https://discourse.nixos.org/t/why-is-my-nix-shell-rebuilding-every-day-solved/15528 | 06:01:46 | |
Should I add keep-outputs and keep-derivations into my system config or into the flake config? I am a bit confused by that... | 06:14:18 | |
| I'd try it out in the flake first | 06:38:46 | |
| altho the user added it to their configuration.nix https://gitlab.com/engmark/root/-/commit/2d76e110f0e91dadcf376e8e8d7be01d14ab47cf | 06:40:15 | |
| yeah, thats for nixos. are you running nix develop manually Šimon Brandner ? or are you using direnv to trigger rebuilds? | 14:32:37 | |
| Do you mean I should set it system wide? I am using direnv | 14:33:20 | |