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

xmrig{,-proxy}: 2.14.4 -> 3.0.0, add build options customization #66646

Closed
wants to merge 1 commit into from
Closed

xmrig{,-proxy}: 2.14.4 -> 3.0.0, add build options customization #66646

wants to merge 1 commit into from

Conversation

vorot93
Copy link
Contributor

@vorot93 vorot93 commented Aug 14, 2019

Update versions and add build customization, incl. choosing your own algorithms to compile.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @aij @fpletz

@doronbehar
Copy link
Contributor

See the automated #76476 - you may want to suggest closing it in favor of this.

Copy link
Contributor

@aij aij left a comment

Choose a reason for hiding this comment

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

Thanks! Just a little nitpicking if you don't mind.

++ lib.optional ((lib.count(a: a == "cryptonight-heavy") algo) == 0) "-DWITH_CN_HEAVY=OFF"
++ lib.optional ((lib.count(a: a == "cryptonight-pico") algo) == 0) "-DWITH_CN_PICO=OFF"
++ lib.optional ((lib.count(a: a == "cryptonight-gpu") algo) == 0) "-DWITH_CN_GPU=OFF"
++ lib.optional ((lib.count(a: a == "randomx") algo) == 0) "-DWITH_RANDOMX=OFF"
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be better if this would fail for unknown algo values, so that typos would result in errors instead of silently being ignored.

Also, I think explicitly passing =ON or =OFF would be better in case upstream defaults change in the future.

};

cmakeFlags = []
++ lib.optional (!tls) "-DWITH_TLS=OFF"
Copy link
Contributor

Choose a reason for hiding this comment

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

Here too

cmakeFlags = [ "-DWITH_TLS=${if tls then "ON" else "OFF"}" ];

@vorot93 vorot93 closed this Feb 24, 2020
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

3 participants