!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

599 Members
139 Servers

Load older messages


SenderMessageTime
7 Sep 2021
@ilkecan:matrix.orgilkecan Regarding apps and defaultApp outputs; I was using them to specify the executable name. But after learning about meta.mainProgram, I can't see how they are useful now. Why would I want to create them? 20:38:47
@ilkecan:matrix.orgilkecan * Regarding apps and defaultApp outputs; I was using them to specify the executable name. But after learning about meta.mainProgram, I can't see how they are useful now. Why would I want to create them? https://nixos.org/manual/nixpkgs/unstable/#var-meta-mainProgram 20:42:11
@ilkecan:matrix.orgilkecan Only reason I can think of is that I have packages.foo and I want to do nix run '.#bar' rather than nix run '.#foo' 20:44:21
8 Sep 2021
@mbprtpmnr:matrix.orgmbprtpmnr joined the room.13:49:42
9 Sep 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈I seem to have done it again, I have an environemtn where I supposedly have unstable nix, but supposedly "print-dev-env" isn't a command?17:46:16
@colemickens:matrix.orgcolemickens 🏳️‍🌈The CLI didn't change again did it? I think there's something else super obvious that I'm missing for some reason17:46:30
@colemickens:matrix.orgcolemickens 🏳️‍🌈It's from nix-direnv too, somehow it finds an old (Wrong) nix version to use :/17:49:05
@colemickens:matrix.orgcolemickens 🏳️‍🌈 nix --version says 2.4pre... but when I run direnv allow I get an error from a nix-2.3 build :/ 17:49:29
@tomberek:matrix.orgtomberek colemickens 🏳️‍🌈: are you on home-manager and direnv is using legacy Nix in its PATH? 17:57:29
@colemickens:matrix.orgcolemickens 🏳️‍🌈Well, I'm not on HM, but these instructions are using nix-env18:06:57
@colemickens:matrix.orgcolemickens 🏳️‍🌈I can just link you, https://github.com/colemickens/nixpkgs-wayland/blob/master/.gitpod.Dockerfile#L2718:07:14
@colemickens:matrix.orgcolemickens 🏳️‍🌈I'm just trying to get a flakey-nix-direnv-y gitpod setup going.18:07:26
@colemickens:matrix.orgcolemickens 🏳️‍🌈 Despite these commands, when I fire it up and hit direnv allow I get the behavior I described above (it does sorta look like direnv's using a bundlded nix?) 18:07:59
@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