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

CMake build error on NixOS #80

Closed
Necryotiks opened this issue Nov 24, 2021 · 6 comments
Closed

CMake build error on NixOS #80

Necryotiks opened this issue Nov 24, 2021 · 6 comments

Comments

@Necryotiks
Copy link

Hello,

When I attempt to build p2pool using the following command:

nix run git+https://github.com/SChernykh/p2pool?ref=master -- --help

I get the following error:

error: builder for '/nix/store/2dwhn0f5xpnzbypv1w9l9djqsmdaz84i-p2pool-0.0.1.drv' failed with exit code 1;
       last 10 log lines:
       > CMake Error at CMakeLists.txt:12 (add_subdirectory):
       >   The source directory
       >
       >     /build/source/external/src/RandomX
       >
       >   does not contain a CMakeLists.txt file.
       >
       >
       > -- Configuring incomplete, errors occurred!
       > See also "/build/source/build/CMakeFiles/CMakeOutput.log".
       For full logs, run 'nix log /nix/store/2dwhn0f5xpnzbypv1w9l9djqsmdaz84i-p2pool-0.0.1.drv'.

Is there anything I am forgetting to do?
I know that there is a merge request for p2pool in the pipeline but I'm not sure when that will be complete.

NixOS Version: 21.11pre333218.263ef4cc414 (Porcupine)

@SChernykh
Copy link
Owner

Did you try instructions at https://github.com/SChernykh/p2pool#nixnixos ? Also I have no idea for it works, maybe @HaosGames can help.

@HaosGames
Copy link
Contributor

Yeah, this is currently broken because the support for git-submodules in nix-flakes got reverted. There is a tracking issue for fixing this but it may take a while to find the right solution.
Now that you mention the pull request in nixpkgs I think it may be better to wait for it to be merged because even if I was trying to fix this now it probably would not be a proper fix because nix still lacks a proper solution for git-submodules in nix-flakes.

I however found this PR which introduces a "build-with-submodules"-flag in the URL. So for now you could try this:

  1. Enter a shell with the latest nix from the master branch
    nix shell github:nixos/nix/master
  2. Then build or/and run p2pool with the submodules flag
    nix run git+https://github.com/SChernykh/p2pool?submodules=1

@ratsclub
Copy link

I created the PR because I had the same problem. I'm currently in the step of testing it for a few days to see if it's working properly and I'd really appreciate it if you people tried it on your setup too!

@ratsclub
Copy link

Hello, I did a little project meant to provide these packages. It has the latest xmrig software and p2pool. It also has the monero node on the current release-v0.17 branch commit.

Although it doesn't have much documentation I'll say that you can just import the overlay on your configuration and use all the packages!

@Owlsystem
Copy link

same error

@ratsclub
Copy link

It was merged on nixpkgs. One can use it right from there!

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

No branches or pull requests

5 participants