!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

863 Members
167 Servers

Load older messages


SenderMessageTime
25 Sep 2023
@bertof:matrix.orgbertof joined the room.10:43:46
@eva:blahaj.nyceva joined the room.15:45:15
@Las:matrix.org@Las:matrix.org left the room.19:44:14
26 Sep 2023
@orowith2os:fedora.imOro (any/all) changed their profile picture.05:51:42
27 Sep 2023
@amnicolist:matrix.orgamnicolist joined the room.02:13:56
@amnicolist:matrix.orgamnicolist

Hi flakes, I'm new to nixos/flakes and this chat. I have a question about flake-parts and overlays. I hope its okay to ask here.

I'm trying to get the [rust-overlay](https://github.com/oxalica/rust-overlay

02:17:58
@amnicolist:matrix.orgamnicolist *

Hi flakes, I'm new to nixos/flakes and this chat. I have a question about flake-parts and overlays. I hope its okay to ask here.

I'm trying to get the [rust-overlay](https://github.com/oxalica/rust-overlay) working with an existing repo that I forked. However, I can't figure out how to get access to the rust-bin set once I follow the https://flake.parts/overlays documentation

02:19:19
@amnicolist:matrix.orgamnicolist *

Hi flakes, I'm new to nixos/flakes and this chat. I have a question about flake-parts and overlays. I hope its okay to ask here.

I'm trying to get the rust-overlay working with an existing repo that I forked. However, I can't figure out how to get access to the rust-bin set once I follow the https://flake.parts/overlays documentation

02:19:32
@charles:computer.surgeryCharlesWould you be amenable to an alternative that doesn't involve overlays02:43:36
@mib:kanp.aimib 🥐 changed their display name from mib to mib 🥐.05:53:08
@belvaleth:matrix.orgbelvaleth joined the room.13:25:07
@antifuchs:asf.computer@antifuchs:asf.computer amnicolist: you're following the "consuming an overlay" section? 17:47:28
@antifuchs:asf.computer@antifuchs:asf.computer that will define the "pkgs" attribute available in the perSystem closure's arguments as the overlaid version, but you then also have to go and use that pkgs attribute to define the system / home-manager configuration... that's typically what trips me up 17:49:43
@antifuchs:asf.computer@antifuchs:asf.computerbut anyway, how are you planning to use the overlay? (:17:50:28
28 Sep 2023
@amnicolist:matrix.orgamnicolist
In reply to @antifuchs:asf.computer
amnicolist: you're following the "consuming an overlay" section?

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];
00:58:36
@amnicolist:matrix.orgamnicolist
In reply to @antifuchs:asf.computer
amnicolist: you're following the "consuming an overlay" section?
*

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];

Nixos would complain that it can't find rust-bin. I don't really get where it comes from in the overlay part so I couldn't reverse engineer the

        # ... things you need to patch ...
      })
01:00:02
@amnicolist:matrix.orgamnicolist *

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];

Nixos would complain that it can't find rust-bin. I don't really get where it comes from in the overlay part so I couldn't reverse engineer the

        # ... things you need to patch ...
      })
01:00:31
@amnicolist:matrix.orgamnicolist *

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];

Nixos would complain that it can't find rust-bin. I don't really get where it comes from in the overlay part so I couldn't reverse engineer the

(final:
        # ... things you need to patch ...
      })
01:00:42
@jc:jc1.ca@jc:jc1.ca joined the room.03:34:17
@jc:jc1.ca@jc:jc1.ca left the room.03:36:22
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland to hopland (negative nancy).21:37:10
29 Sep 2023
@petrichor:envs.net@petrichor:envs.net
In reply to @amnicolist:matrix.org

Yes, I saw the stuff about consuming the overlay. That explained how to get the rust-overlay into the pkgs. I think I kind-of get that. The problem came when I wanted to actually install the package. I want to have multiple rust tool chains installed, nightly for some things etc. My understanding fell down when I tried to call something like

  home.packages = with pkgs; [
    rust-bin.stable.latest.default
  ];

Nixos would complain that it can't find rust-bin. I don't really get where it comes from in the overlay part so I couldn't reverse engineer the

(final:
        # ... things you need to patch ...
      })
just had a look at that section of those docs and it's a bit confusing. you don't need to use the (final: prev: {…}) for at all (that's for defining your own quick inline overlay), you should be able to set overlays = [ inputs.rust-overlay.overlays.default];
06:19:43
@petrichor:envs.net@petrichor:envs.net* just had a look at that section of those docs and it's a bit confusing. you don't need to use the `(final: prev: {…})` form at all (that's for defining your own quick inline overlay), you should be able to set `overlays = [ inputs.rust-overlay.overlays.default];`06:20:19
30 Sep 2023
@marwri:matrix.orgmarwri joined the room.04:31:57
1 Oct 2023
@kchibisov:matrix.org@kchibisov:matrix.org left the room.08:11:27
@rwx-rwx-rwx:matrix.orgMikael Fangel joined the room.09:33:44
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (negative nancy) to hopland (positive pete).17:20:12
@ThorHop:matrix.org@ThorHop:matrix.org changed their display name from hopland (positive pete) to hopland (ambivalent andy).17:44:01
3 Oct 2023
@pederbs:pvv.ntnu.nopbsds changed their profile picture.21:04:21
4 Oct 2023
@pederbs:pvv.ntnu.nopbsds changed their profile picture.22:20:26

Show newer messages


Back to Room ListRoom Version: 6