| 30 Aug 2023 |
j-k | np. maybe try run this quickly nix run github:nixos/nixpkgs/nixpkgs-unstable#nix-info -- -m | 09:28:33 |
Moritz | - system:
"x86_64-linux"
- host os:
Linux 6.4.11, NixOS, 23.11 (Tapir), 23.11.20230823.9201b5f - multi-user?:
no - sandbox:
yes - version:
nix-env (Nix Super) 2.18.0pre20230813_65e8aba - channels(root):
"" - channels(moritz):
"" - nixpkgs:
not found
| 09:29:15 |
Moritz | * - system:
"x86_64-linux" - host os:
Linux 6.4.11, NixOS, 23.11 (Tapir), 23.11.20230823.9201b5f - multi-user?:
no - sandbox:
yes - version:
nix-env (Nix Super) 2.18.0pre20230813_65e8aba - channels(root):
"" - channels(moritz):
"" - nixpkgs:
not found | 09:29:41 |
Moritz | I guess I really just need to setup my channels to follow the flake input. | 09:30:13 |
j-k | hmm ok so I thought it might be sandboxing disabled but it's on. I'm not sure how you managed to turn off multi-user on nixos ... 👀 nix 2.18 probably didn't break anything.
is this file in a clone of nixpkgs? how are you running nix-build?
| 09:31:08 |
Moritz | I'm running:
nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix {}' | 09:32:05 |
j-k | yeah so that's pulling nixpkgs from your channels which will be super old | 09:32:31 |
j-k | <nixpkgs> is channels syntax | 09:32:51 |
Moritz | Ahhh, that makes perfect sense then... | 09:33:24 |
Moritz | Thanks for your help. Now with the nixpkgs it builds flawlessly :) | 09:48:25 |
j-k | glad to hear | 11:23:13 |
| 5 Sep 2023 |
| zoopli joined the room. | 17:28:41 |
| 9 Sep 2023 |
| Moritz Sanft joined the room. | 12:15:00 |
| 10 Sep 2023 |
| farcaller joined the room. | 12:35:56 |
farcaller |  Download image.png | 12:39:52 |
farcaller | wrote a tiny idiomatic API wrapper around C bindings to nix:
```
$ go run examples/build_hello/main.go
drv /nix/store/nms6chyaxb6pxzb021jx351nn32j3lx7-hello-2.12.1.drv vaild? true
out -> /nix/store/6wmplzfs0nz866p320xnknpr05q79m62-hello-2.12.1
``` | 12:39:52 |
farcaller | * wrote a tiny idiomatic API wrapper around C bindings to nix: \$ go run examples/build\_hello/main.go
drv /nix/store/nms6chyaxb6pxzb021jx351nn32j3lx7-hello-2.12.1.drv vaild? true
out -> /nix/store/6wmplzfs0nz866p320xnknpr05q79m62-hello-2.12.1 | 12:40:07 |