Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running via nix run doesn't run the nightly #39

Open
agoose77 opened this issue Aug 9, 2024 · 2 comments
Open

Running via nix run doesn't run the nightly #39

agoose77 opened this issue Aug 9, 2024 · 2 comments

Comments

@agoose77
Copy link

agoose77 commented Aug 9, 2024

I'm new to Nix, and specifically don't understand yet the nuances of how the flake standard is interpreted. So, apologies if this is user error.

I tried to run the nightly from this flake using

nix run github:nix-community/flake-firefox-nightly#firefox-beta-bin

This launched my Firefox binary (version 128). So, then I tried nix shell ..., which gave me this PATH:

> echo $PATH
/nix/store/f7pkv8r1zm9hyhzmx2jljxmiy8nf82d6-firefox-variants/bin:...

But this doesn't exist:

> test -d /nix/store/f7pkv8r1zm9hyhzmx2jljxmiy8nf82d6-firefox-variants/bin || echo "Doesn't exist"
Doesn't exist

If I ls around that PATH, I find that /nix/store/f7pkv8r1zm9hyhzmx2jljxmiy8nf82d6-firefox-variants does exist, and try launching the binary directly

> /nix/store/f7pkv8r1zm9hyhzmx2jljxmiy8nf82d6-firefox-variants/firefox-nightly-bin/bin/firefox-nightly --version
Mozilla Firefox 131.0a1

But launching that binary again seems to launch my global Firefox. Only if I invoke the unwrapped binary does it work.

I suspect this might be a my-system thing rather than this-flake thing, but any pointers would be appreciated.

@agoose77
Copy link
Author

agoose77 commented Aug 9, 2024

Wait ... is this just Firefox behavior that keeps a global session? 🤦

In any case, I'm still unsure as to why nix shell gives me the wrong PATH.

@teto
Copy link

teto commented Nov 5, 2024

haven't investigated it but saw the same behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants