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

Compile nginx with libzauth using nix #988

Merged
merged 4 commits into from
Mar 4, 2020
Merged

Compile nginx with libzauth using nix #988

merged 4 commits into from
Mar 4, 2020

Conversation

arianvp
Copy link
Contributor

@arianvp arianvp commented Feb 21, 2020

This allows you to use nginz on Nix and NixOS machines

Noteworthy:

both vts and moreheaders are packaged in nixpkgs, so no need
to fetch those git submodules... I don't think it's a very big problem. We can pin them but it seems to be working fine for now...

I also use niv for version management of nixpkgs. instead of hacky own
thing.

To build this with the newly set up binary cache, try this:

$ nix-env -iA cachix -f https://cachix.org/api/v1/install
$ cachix use wire-server
$ nix-build ./nix -A nginz

@arianvp arianvp requested a review from fisx February 21, 2020 15:25
services/integration.sh Outdated Show resolved Hide resolved
arianvp and others added 4 commits March 3, 2020 12:34
Noteworthy:

both vts and moreheaders are packaged in nixpkgs, so no need
to fetch those git submodules... but perhaps there are version
conflicts. we should check! :)

I also use niv for version management of nixpkgs. instead of hacky own
thing.
It's in the top-level gitignore of wire-server, but not in the one in
libzauth

This is all a bit confusing. We should unify everything in one top-level
gitignore. That makes things a lot less complicated. However,
this is an impurity to tackle in another commit
Copy link
Contributor

@fisx fisx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, i changed libs/libzauth/libzauth-c/src/zauth.h and tried

nix-build nix -A nginz --no-out-link

and it actually re-built nginz. cool.

I would have expected this line to do the same thing, hough, and it doesn't. If I change zauth.h to something new again and call make i on project root, no build is triggered.

@fisx fisx mentioned this pull request Mar 3, 2020
@fisx
Copy link
Contributor

fisx commented Mar 3, 2020

I probably didn't set this variable. Will investigate later.

@fisx fisx merged commit a8a1ae9 into develop Mar 4, 2020
@fisx fisx deleted the nginx-nix branch March 4, 2020 07:28
@fisx fisx mentioned this pull request Mar 10, 2020
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

Successfully merging this pull request may close these issues.

2 participants