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

nginx: add PageSpeed module (Linux only) #21708

Merged
merged 1 commit into from Jan 11, 2017

Conversation

3noch
Copy link
Contributor

@3noch 3noch commented Jan 6, 2017

Motivation for this change

Ref #14277
Fixes #9420

Adds the PageSpeed module for nginx. Currently only Linux is supported because we use the prebuilt PSOL binaries.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

@mention-bot
Copy link

@3noch, thanks for your PR! By analyzing the history of the files in this pull request, we identified @abbradar, @mattbillenstein and @knupfer to be potential reviewers.

@3noch 3noch force-pushed the nginx-pagespeed-module branch 3 times, most recently from 3ff95fe to 829e87c Compare January 6, 2017 16:26
@3noch 3noch changed the title Add PageSpeed module for nginx (Linux only) nginx: add PageSpeed module (Linux only) Jan 6, 2017
@3noch
Copy link
Contributor Author

3noch commented Jan 6, 2017

I'm using this module on a staging server with nginxMainline without issues.

};

psol = pkgs.fetchzip {
url = "https://dl.google.com/dl/page-speed/psol/${version}.tar.gz";
Copy link
Member

Choose a reason for hiding this comment

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

I can't seem to find any license for these binaries. Do you know more?

If we can't distribute these license = pkgs.stdenv.lib.licenses.unfree should added to the meta attribute.

Copy link
Member

Choose a reason for hiding this comment

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

The AUR people mean it is apache: https://aur.archlinux.org/packages/psol/
In this case there is most likely a LICENSE file in the source tarball.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's Apache 2 license. I'll add the meta anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is there a better place to put this PSOL library? It really could be used by any package, not just the pagespeed module.

Copy link
Contributor Author

@3noch 3noch Jan 9, 2017

Choose a reason for hiding this comment

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

In fact, I think this same file would be used in the Apache httpd module, so we likely should move this somewhere higher in the package organization.

@3noch
Copy link
Contributor Author

3noch commented Jan 9, 2017

Can anyone recommend a better place to put the PSOL package itself?

@Mic92
Copy link
Member

Mic92 commented Jan 9, 2017

@3noch in pkgs/development/libraries and add a reference in top-level/all-packages.nix.

@3noch
Copy link
Contributor Author

3noch commented Jan 9, 2017

@Mic92 How's this?

@Mic92 Mic92 merged commit d9681de into NixOS:master Jan 11, 2017
@Mic92
Copy link
Member

Mic92 commented Jan 11, 2017

Thanks!

@3noch 3noch deleted the nginx-pagespeed-module branch January 11, 2017 16:39
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.

None yet

4 participants