Sender | Message | Time |
---|---|---|
4 Sep 2024 | ||
getchoo | there are probably ways to do this better/re-use more stuff from the parent package like it's native/buildInputs but | 01:53:24 |
getchoo | hopefully you get the idea lol | 01:53:29 |
getchoo | *
with | 01:53:55 |
emily | right, I ended up doing something like that with runCommandCC since asking :) | 01:58:10 |
emily | was just hoping there was something more "native" | 01:58:14 |
emily | I considered doing an .overrideAttrs and changing all the phases too | 01:58:38 |
getchoo | it's not a bad option i just hate disabling some other stuff like the install step lol | 02:03:27 |
emily | yeah it's annoying | 02:04:04 |
emily |
| 02:04:12 |
emily | not very pretty, but it seems nicer since it works with buildInputs etc. | 02:04:23 |
ˈt͡sɛːzaɐ̯ |
I'm amazed that that is possible. | 03:52:30 |
ˈt͡sɛːzaɐ̯ | I was thinking I could do some fun networking experiments with containers = listToAttrs (genList (idx: { name = "c${toString idx}"; value = /* some container config */; };) 100); , but the time this takes to evaluate is ridiculous. | 04:49:14 |
Prism019 | Redacted or Malformed Event | 05:25:39 |
ˈt͡sɛːzaɐ̯ | Yay, https://github.com/NixOS/nixpkgs/blob/12228ff1752d7b7624a54e9c1af4b222b3c1073b/nixos/modules/virtualisation/nixos-containers.nix#L846-L847 doesn't escape the interface names, so if your interface has a -, the container won't start.. | 05:26:10 |
ˈt͡sɛːzaɐ̯ | * Yay, https://github.com/NixOS/nixpkgs/blob/12228ff1752d7b7624a54e9c1af4b222b3c1073b/nixos/modules/virtualisation/nixos-containers.nix#L846-L847 doesn't escape the interface names, so if your interface has a -, the container won't start.. (Time to write a bug report…) | 05:26:26 |
Prism019 | Apologies for that, phone was unlocked in my pocket. | 05:28:59 |
ˈt͡sɛːzaɐ̯ | ("Talk to the hand" was common phrase in my school days to shut someone up. Now I talked to the butt. ;)) | 05:32:56 |
Stream joined the room. | 09:45:15 | |
Stream | hey friends | 09:45:22 |
Stream | I'm really hoping some of you have the technical know-how to help me here, because I really don't want to uninstall NixOs! For simplicity, all I want is a global install of I've got Rust compiling in shell.nix but I'm keen on a global install (I'm a full time Rust engineer) that plays nice with my RustRover IDE. Setup:
Can someone please please help me? I took two days off this week to contribute to OSS and all I've managed is to beat my head against a Nix wall 🙏 | 09:58:00 |
K900 | Generally, adding rustup to environment.systemPackages should mostly work | 09:58:42 |
K900 | But also, generally, you don't actually want a system-wide install | 09:58:54 |
Stream | Oh, forgot to add, my "rustup environment.systemPackages" doesn't work because:
| 10:00:14 |
K900 | That's not a rustup issue | 10:00:23 |
K900 | That's basically the reason you don't want a system-wide install | 10:00:34 |
K900 | It's trying to find openssl, which is a C library | 10:00:41 |
K900 | Which is generally not something Nix is designed to provide access to system-wdie | 10:00:53 |
K900 | * Which is generally not something Nix is designed to provide access to system-wide | 10:00:55 |
Stream | In order to satisfy the requirements, I added all the deps system wide that I did to get my shell.nix to work:
| 10:02:31 |
K900 | Yeah, the problem is that it will not set up the environment correctly | 10:02:44 |