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

asterisk: add lts version #22358

Merged
merged 3 commits into from Feb 3, 2017
Merged

asterisk: add lts version #22358

merged 3 commits into from Feb 3, 2017

Conversation

yorickvP
Copy link
Contributor

@yorickvP yorickvP commented Feb 2, 2017

Motivation for this change

Asterisk has a few different versions available. Some of them might be more suitable for server use than others. I added a way to specify which asterisk version to use, and also a way to fetch external dependencies (it was doing it at build time, leading to hydra failures).

I'm not sure if what I'm doing is the correct way.

I also added myself as a maintainer to this package.

(cc: @grahamc, @DerTim1, @fpletz )

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

@yorickvP, thanks for your PR! By analyzing the history of the files in this pull request, we identified @DerTim1, @auntieNeo and @fpletz to be potential reviewers.

@DerTim1
Copy link

DerTim1 commented Feb 2, 2017

I can check this out in a few hours...

Copy link

@DerTim1 DerTim1 left a comment

Choose a reason for hiding this comment

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

Compilation in NixOS is ok and works with my Asterisk-Config.

lts = ./lts.nix;
};
in
{ stdenv, pkgs,
Copy link

Choose a reason for hiding this comment

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

I think this is unusual style. The only differences between the two versions (lts & stable) are version and hash. So it would be smarter to switch inside one nix-file, compare for example PostgreSQL https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/sql/postgresql/default.nix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, I changed it to be inside one nix-file like postgresql.

Copy link

@DerTim1 DerTim1 left a comment

Choose a reason for hiding this comment

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

Great, looks good to me!

@benley benley merged commit 53e6431 into NixOS:master Feb 3, 2017
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