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

Building master branch on NixOS #753

Closed
DieracDelta opened this issue May 23, 2020 · 9 comments
Closed

Building master branch on NixOS #753

DieracDelta opened this issue May 23, 2020 · 9 comments
Labels

Comments

@DieracDelta
Copy link
Contributor

DieracDelta commented May 23, 2020

Hello! I'd like to run the master branch of next on my nixos box. I realize that a package already exists, but this package is for next version 1.5, which seems to be far away from the current master branch.

I cloned the master branch (currently at commit df6059fb1900ecaf8cd4bd4643101362b6821995). Then I created this shell.nix and nix-shell shell.nix-ed into it. Then I ran make all. This successfully builds the binary, but when I try to open a url, I get the following error: TLS/SSL support not available; install glib-networking. I've made sure that glib-networking is on my LD_LIBRARY_PATH at runtime, so I'm not really sure what to do next here. Any advice would be appreciated!

Alternatively if someone has managed to build this for NixOS already, please share your script!

@DieracDelta DieracDelta changed the title Installation of master branch on NixOS Building master branch on NixOS May 23, 2020
@DieracDelta
Copy link
Contributor Author

DieracDelta commented May 24, 2020

As an update on this, it turns out the fix in issue #592 is the same issue I'm experiencing. Setting GIO_MODULE_DIR fixed the problem for me.

I'm going to remove a bunch of the janky stuff my derivation does and see if I can pull together a nix package (instead of just a shell.nix). Would you guys be open to a PR that adds my (perhaps still janky) nix build to the scripts/ directory?

Also, it might be helpful for new users to know that GIO_MODULE_DIR must be set. Thoughts on adding this as a blurb to the documentation? Perhaps as an aside in the developer readme?

@jmercouris
Copy link
Member

I would gladly add such a file into our build-scripts directory :-)

thank you for your continued investigation on this topic!

PRs also welcome for the documentation :-)

thanks for your very detailed report!

@Ambrevar
Copy link
Member

Ambrevar commented May 25, 2020 via email

@walseb
Copy link
Contributor

walseb commented Jul 26, 2020

I have been trying to get the nyxt master branch building on nixos and while the method described (manually git-cloning nyxt and building it with this nix-shell file) seems to work works, building it as a package doesn't. The root of the problem is that cl-containers is not available on nixpkgs (unless I'm mistaken). You could get the package using quicklisp like I believe is done when you build manually using the nix-shell approach, but when building a nix package you don't have internet access so that the builds are reproducible.
To clarify, I get this error when building:

debugger invoked on a ASDF/FIND-COMPONENT:MISSING-DEPENDENCY in thread
#<THREAD "main thread" RUNNING {10005184C3}>:
  Component :CL-CONTAINERS not found, required by #<SYSTEM "nyxt">

@Ambrevar
Copy link
Member

Ambrevar commented Jul 26, 2020 via email

@walseb
Copy link
Contributor

walseb commented Jul 26, 2020

This is strange, so apparently nixpkgs already builds all packages that are on quicklisp, including cl-containers : https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/lisp-modules/quicklisp-to-nix-output

But I can't find it on nixpkgs: https://nixos.org/nixos/packages.html?channel=nixos-20.03&query=cl-containers

@bqv
Copy link
Contributor

bqv commented Aug 19, 2020

NixOS/nixpkgs#92763

If you manage to update lispPackages, that'd be great, but I've been trying for months, and nobody feels the need to help because these knuckleheads haven't tagged anything since last year

@walseb
Copy link
Contributor

walseb commented Aug 19, 2020

Thanks! Now we at least know why this isn't working

@jmercouris
Copy link
Member

There exists a default.nix on master now that allows you to compile master on NixOS! Please let me know if you experience any problems!

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

No branches or pull requests

5 participants