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
ethminer: init at 0.18.0-rc.0 #55422
Conversation
nand0p
commented
Feb 7, 2019
•
edited
edited
- updates jsoncpp
- adds ethash and cli11
- tested on NixOS
Have you tried without hunter ? https://github.com/ethereum-mining/ethminer/blob/master/docs/BUILD.md#disable-hunter The dependencies they list (cmake and others) seem reasonable. |
i was not successful in decoupling hunter. it appears |
You mean:
? |
perhaps i need to introduce a new |
here is an expression which contains jsoncpp.overrideAttrs(old: {
cmakeFlags= (old.cmakeFlags or []) ++ ["-DJSONCPP_WITH_CMAKE_PACKAGE=ON"];
}) This change seems benign enough to me that you can change it globally in pkgs/development/libraries/jsoncpp/default.nix instead of overriding it only for ethminer. |
ethash and cli11 are apparently not exporting the correct include path. any ideas here? |
I think the problem is that you override the default configure, build and or installPhase. diff --git a/pkgs/development/tools/misc/cli11/default.nix b/pkgs/development/tools/misc/cli11/default.nix
index 47c5b7e2a9d..258e5af0ee7 100644
--- a/pkgs/development/tools/misc/cli11/default.nix
+++ b/pkgs/development/tools/misc/cli11/default.nix
@@ -13,22 +13,11 @@ stdenv.mkDerivation rec {
#fetchSubmodules = true;
};
- buildInputs = [
+ nativeBuildInputs = [
cmake
];
cmakeFlags = [
"-DCLI11_TESTING=OFF"
];
-
- buildPhase = ''
- cmake . $cmakeFlags
- '';
-
- installPhase = ''
- mkdir -pv $out
- cp -rv * $out
- cp -v CMakeFiles/Export/lib/cmake/CLI11/CLI11Config.cmake $out/cli11-config.cmake
- '';
-
} I get the very clean hierarchy
for cli11 instead of
Note how the automatic phases have installed the missing /include directory. I expect that if you remove all your custom buildPhases, configurePhases and installPhases, everything should work well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR. Looks good to me.
@cpages @ttuegel @infinisil @symphorien Anything i can do to help get this merged in? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should have a separate commit for each package you add, and a final commit for the NixOS module.
9385a28
to
8a5fa5b
Compare
14c6733
to
4e387b2
Compare
@infinisil ready_for_review |
Oh and the last commit should be named |
- Tested on NixOS
- Tested on NixOS
- Tested on NixOS
- Tested on NixOS
@infinisil ready_for_review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't just mark things as resolved if you haven't resolved them!
@infinisil ready_for_review |
- Tested on NixOS