!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

880 Members
176 Servers

Load older messages


SenderMessageTime
9 Sep 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈but not sure what the fix is, I guess. When I skimmed nix-direnv's source, I thought it looked like it ought've been trying to use the newer nix from the nix-profile, but obviously not.18:08:30
@colemickens:matrix.orgcolemickens 🏳️‍🌈(tbh I'm a bit curious if mic92 might read this and know off the top of his head, but they're not in here I guess)18:09:01
@colemickens:matrix.orgcolemickens 🏳️‍🌈 * (tbh I'm a bit curious if mic92 might read this and know off the top of their head, but they're not in here I guess)18:09:11
@tomberek:matrix.orgtomberekah, direnv is catching the gitpod variant of Nix18:09:17
@tomberek:matrix.orgtomberekhttps://github.com/nix-community/nix-direnv/blob/master/direnvrc#L3218:09:20
@colemickens:matrix.orgcolemickens 🏳️‍🌈Except, /home/gitpod/.nix-profile/bin/nix-shell is the nix-shell18:10:12
@tomberek:matrix.orgtomberekmay need to source .bashrc prior to that call, or add the correct Nix beforehand18:10:16
@colemickens:matrix.orgcolemickens 🏳️‍🌈and ~/.nix-profile/bin/nix is the newer one :P18:10:20
@colemickens:matrix.orgcolemickens 🏳️‍🌈 and I checked the nix profile sourcing is before the direnv/nix-direnv stuff :( 18:10:38
@colemickens:matrix.orgcolemickens 🏳️‍🌈or wait, I guess that is maybe only true after my shell has loaded more stuff18:11:02
@colemickens:matrix.orgcolemickens 🏳️‍🌈I should debug a bit more.18:11:05
@tomberek:matrix.orgtomberekit looks like a bashrc/PATH mixup or ordering issue18:12:05
@colemickens:matrix.orgcolemickens 🏳️‍🌈you're certainly not wrong, the NIX_BIN_PATH is wrongly set there18:13:45
@colemickens:matrix.orgcolemickens 🏳️‍🌈just... not sure why, I swear I source the nix-profile early-enough in bashrc.18:14:07
@colemickens:matrix.orgcolemickens 🏳️‍🌈thanks for the nudge 18:14:12
@tomberek:matrix.orgtomberek perhaps add a echo $PATH, command -v nix and command -v nix-shell just prior to that line in the Dockerfile? 18:15:08
@colemickens:matrix.orgcolemickens 🏳️‍🌈 (like I call nix --version RIGHT BEFORE the direnv stuff in bashrc and it prints 2.4pre...) 18:15:19

There are no newer messages yet.


Back to Room ListRoom Version: 6