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

nsd: 4.1.15 -> 4.1.16 #26002

Closed
wants to merge 2 commits into from
Closed

nsd: 4.1.15 -> 4.1.16 #26002

wants to merge 2 commits into from

Conversation

leenaars
Copy link
Contributor

Motivation for this change

Minor version update. Plus (in a second commit) a fix to nsd-control-setup. This convenience script was dependent on openssl being already installed, now it is a propagatedBuildInput.

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

@leenaars, thanks for your PR! By analyzing the history of the files in this pull request, we identified @hrdinka, @aszlig and @vcunat to be potential reviewers.

'';

buildInputs = [ libevent ];
propagatedBuildInputs = [ openssl ];
Copy link
Member

Choose a reason for hiding this comment

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

If you're already replacing the openssl path in the shell script calling it, putting it in propagatedBuildInputs is not necessary except there are more scripts/tools depending on openssl being present.

};

buildInputs = [ libevent openssl ];
patchPhase = ''
Copy link
Member

Choose a reason for hiding this comment

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

You should use prePatch or postPatch here so you can still pass patches to the mkDerivation call which is done in the default patchPhase that you're replacing here.

buildInputs = [ libevent openssl ];
patchPhase = ''
substituteInPlace nsd-control-setup.sh.in --replace openssl ${openssl}/bin/openssl
'';
Copy link
Member

Choose a reason for hiding this comment

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

Minor indention nitpick. 2 spaces to the left please. :)

@leenaars
Copy link
Contributor Author

leenaars commented May 23, 2017

Fixed comments by @fpletz (thanks by the way)!

@hrdinka
Copy link
Contributor

hrdinka commented May 26, 2017

Built and tested locally. Thank you for your contribution!

bkchr pushed a commit to bkchr/nixpkgs that referenced this pull request May 26, 2017
adrianpk added a commit to adrianpk/nixpkgs that referenced this pull request May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants